janritter/kvb-api

View on GitHub

Showing 1 of 4 total issues

Method KVBAdapter.GetDeparturesForStationID has 58 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (adapter *KVBAdapter) GetDeparturesForStationID(ctx context.Context, stationID int) (domains.Departures, error) {
    var span trace.Span
    ctx, span = otel.Tracer("kvb-api").Start(ctx, "GetDeparturesForStationID")
    defer span.End()

Severity: Minor
Found in adapters/kvb.go - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language