Preparing report...

Report for github.com/setheck/oba

A+    Excellent!    Found 8 issues across 18 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint55%

Golint is a linter for Go source code.

    • oba/cli/cmd/agency.go
    • Line 36: warning: exported function Agency should have comment or be unexported (golint)
    • Line 45: warning: exported function AgenciesWithCoverage should have comment or be unexported (golint)
    • oba/cli/cmd/route.go
    • Line 35: warning: exported function Route should have comment or be unexported (golint)
    • Line 44: warning: exported function RouteIdsForAgency should have comment or be unexported (golint)
    • oba/ancestors.go
    • Line 28: warning: exported type AltResponse should have comment or be unexported (golint)
    • Line 81: warning: exported method Data.Agencies should have comment or be unexported (golint)
    • Line 92: warning: exported method Data.Routes should have comment or be unexported (golint)
    • Line 103: warning: exported method Data.Situations should have comment or be unexported (golint)
    • Line 114: warning: exported method Data.Stops should have comment or be unexported (golint)
    • Line 125: warning: exported method Data.Trips should have comment or be unexported (golint)
    • Line 136: warning: exported type AltData should have comment or be unexported (golint)
    • Line 151: warning: exported method Data.TripDetails should have comment or be unexported (golint)
    • Line 158: warning: exported type Time should have comment or be unexported (golint)
    • oba/defaultclient.go
    • Line 41: warning: exported type DefaultClient should have comment or be unexported (golint)
    • Line 51: warning: exported function NewDefaultClientS should have comment or be unexported (golint)
    • Line 154: warning: exported method DefaultClient.Agency should have comment or be unexported (golint)
    • Line 332: warning: exported method DefaultClient.Block should have comment or be unexported (golint)
    • Line 402: warning: exported method DefaultClient.CurrentTime should have comment or be unexported (golint)
    • Line 483: warning: exported method DefaultClient.RegisterAlarmForArrivalAndDepartureAtStop should have comment or be unexported (golint)
    • Line 660: warning: exported method DefaultClient.Route should have comment or be unexported (golint)
    • Line 711: warning: exported method DefaultClient.RoutesForAgency should have comment or be unexported (golint)
    • Line 932: warning: exported method DefaultClient.Shape should have comment or be unexported (golint)
    • Line 979: warning: exported method DefaultClient.StopIDsForAgency should have comment or be unexported (golint)
    • Line 1030: warning: exported method DefaultClient.Stop should have comment or be unexported (golint)
    • Line 1163: warning: exported method DefaultClient.StopsForRoute should have comment or be unexported (golint)
    • Line 1230: warning: exported method DefaultClient.TripDetails should have comment or be unexported (golint)
    • Line 1291: warning: exported method DefaultClient.TripForVehicle should have comment or be unexported (golint)
    • Line 1336: warning: exported method DefaultClient.Trip should have comment or be unexported (golint)
    • oba/entry.go
    • Line 129: warning: exported type AltEntry should have comment or be unexported (golint)
    • Line 144: warning: exported type NameEntry should have comment or be unexported (golint)
    • Line 150: warning: exported method NameEntry.ToName should have comment or be unexported (golint)
    • Line 158: warning: exported method AltEntry.ToStopGroups should have comment or be unexported (golint)
    • Line 180: warning: exported method Entry.ToAgency should have comment or be unexported (golint)
    • Line 195: warning: exported method Entry.ToAgencyWithCoverage should have comment or be unexported (golint)
    • Line 205: warning: exported method Entry.ToArrivalAndDeparture should have comment or be unexported (golint)
    • Line 239: warning: exported method Entry.ToBlock should have comment or be unexported (golint)
    • Line 247: warning: exported method Entry.ToBlockConfiguration should have comment or be unexported (golint)
    • Line 255: warning: exported method Entry.ToBlockStopTime should have comment or be unexported (golint)
    • Line 268: warning: exported method Entry.ToBlockTrip should have comment or be unexported (golint)
    • Line 276: warning: exported method Entry.ToCoverage should have comment or be unexported (golint)
    • Line 285: warning: exported method Entry.ToCurrentTime should have comment or be unexported (golint)
    • Line 292: warning: exported method AltEntry.ToEncodedPolyLine should have comment or be unexported (golint)
    • Line 300: warning: exported method Entry.ToFrequency should have comment or be unexported (golint)
    • Line 308: warning: exported method Entry.ToLocation should have comment or be unexported (golint)
    • Line 315: warning: exported method Entry.ToRegisteredAlarm should have comment or be unexported (golint)
    • Line 321: warning: exported method Entry.ToRoute should have comment or be unexported (golint)
    • Line 342: warning: exported method Entry.ToScheduleStopTime should have comment or be unexported (golint)
    • Line 354: warning: exported method Entry.ToShape should have comment or be unexported (golint)
    • Line 361: warning: exported method Entry.ToSituation should have comment or be unexported (golint)
    • Line 373: warning: exported method Entry.ToStop should have comment or be unexported (golint)
    • Line 386: warning: exported method Entry.ToStopWithArrivalsAndDepartures should have comment or be unexported (golint)
    • Line 394: warning: exported method Entry.ToStopRouteSchedule should have comment or be unexported (golint)
    • Line 401: warning: exported method Entry.ToStopRouteDirectionSchedule should have comment or be unexported (golint)
    • Line 409: warning: exported method Entry.ToScheduleFrequency should have comment or be unexported (golint)
    • Line 413: warning: exported method Entry.ToStopsForRoute should have comment or be unexported (golint)
    • Line 436: warning: exported method AltEntry.ToStopGrouping should have comment or be unexported (golint)
    • Line 444: warning: exported method Entry.ToStopSchedule should have comment or be unexported (golint)
    • Line 459: warning: exported method Entry.ToStopTime should have comment or be unexported (golint)
    • Line 469: warning: exported method Entry.ToTrip should have comment or be unexported (golint)
    • Line 484: warning: exported method Entry.ToTripDetails should have comment or be unexported (golint)
    • Line 500: warning: exported method Entry.ToTripStatus should have comment or be unexported (golint)
    • Line 540: warning: exported method Entry.ToVehicleStatus should have comment or be unexported (golint)
    • oba/list.go
    • Line 3: warning: exported type List should have comment or be unexported (golint)
    • Line 4: warning: exported type AltList should have comment or be unexported (golint)
    • oba/objects.go
    • Line 7: warning: exported type ArrivalsAndDepartures should have comment or be unexported (golint)
    • Line 9: warning: exported type ArrivalAndDeparture should have comment or be unexported (golint)
    • Line 46: warning: exported type Histogram should have comment or be unexported (golint)
    • Line 57: warning: exported type BlockConfiguration should have comment or be unexported (golint)
    • Line 67: warning: exported type BlockStopTime should have comment or be unexported (golint)
    • Line 78: warning: exported type BlockTrip should have comment or be unexported (golint)
    • Line 87: warning: exported type StopTime should have comment or be unexported (golint)
    • Line 99: warning: exported type Frequency should have comment or be unexported (golint)
    • Line 109: warning: exported type VehicleStatus should have comment or be unexported (golint)
    • Line 142: warning: exported type Block should have comment or be unexported (golint)
    • Line 151: warning: exported type AgencyWithCoverage should have comment or be unexported (golint)
    • Line 163: warning: exported type Coverage should have comment or be unexported (golint)
    • Line 175: warning: exported type CurrentTime should have comment or be unexported (golint)
    • Line 201: warning: exported type RegisteredAlarm should have comment or be unexported (golint)
    • Line 209: warning: exported type Situation should have comment or be unexported (golint)
    • Line 223: warning: exported type Consequence should have comment or be unexported (golint)
    • Line 233: warning: exported type VehicleJourney should have comment or be unexported (golint)
    • Line 243: warning: exported type Shape should have comment or be unexported (golint)
    • Line 252: warning: exported type Stop should have comment or be unexported (golint)
    • Line 268: warning: exported type StopSchedule should have comment or be unexported (golint)
    • Line 280: warning: exported type StopCalendarDay should have comment or be unexported (golint)
    • Line 289: warning: exported type StopRouteSchedule should have comment or be unexported (golint)
    • Line 298: warning: exported type StopRouteDirectionSchedule should have comment or be unexported (golint)
    • Line 308: warning: exported type ScheduleFrequency should have comment or be unexported (golint)
    • Line 316: warning: exported type StopsForRoute should have comment or be unexported (golint)
    • Line 326: warning: exported type StopGrouping should have comment or be unexported (golint)
    • Line 336: warning: exported type StopGroup should have comment or be unexported (golint)
    • Line 347: warning: exported type Name should have comment or be unexported (golint)
    • Line 357: warning: exported type EncodedPolyLine should have comment or be unexported (golint)
    • Line 367: warning: exported type ScheduleStopTime should have comment or be unexported (golint)
    • Line 381: warning: exported type Trip should have comment or be unexported (golint)
    • Line 398: warning: exported type TripDetails should have comment or be unexported (golint)
    • Line 410: warning: exported type TripStatus should have comment or be unexported (golint)
    • Line 441: warning: exported type Location should have comment or be unexported (golint)
    • Line 450: warning: exported type StopWithArrivalsAndDepartures should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!