adapters/stationmapper.go
Function getStationIDForName
has 1007 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func getStationIDForName(ctx context.Context, name string) int {
_, span := otel.Tracer("kvb-api").Start(ctx, "getStationIDForName")
defer span.End()
var m = make(map[string]int)
File stationmapper.go
has 1959 lines of code (exceeds 500 allowed). Consider refactoring. Wontfix
Wontfix
package adapters
import (
"context"
"errors"
Function findClosestMatchingStation
has 923 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func findClosestMatchingStation(ctx context.Context, name string) (string, error) {
_, span := otel.Tracer("kvb-api").Start(ctx, "findClosestMatchingStation")
defer span.End()
wordsToTest := []string{"Aachener Str./Gürtel",