Preparing report...

Report for github.com/govitia/navitia

A+    Excellent!    Found 12 issues across 79 files

Tweet

gofmt98%

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


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!


golint84%

Golint is a linter for Go source code.

    • navitia/utils/requestBuilder.go
    • Line 26: warning: comment on exported method RequestBuilder.AddInt should be of the form "AddInt ..." (golint)
    • Line 31: warning: comment on exported method RequestBuilder.AddFloat64 should be of the form "AddFloat64 ..." (golint)
    • Line 43: warning: comment on exported method RequestBuilder.AddStringSlice should be of the form "AddStringSlice ..." (golint)
    • Line 70: warning: comment on exported method RequestBuilder.AddDateTime should be of the form "AddDateTime ..." (golint)
    • navitia/types/departure.go
    • Line 3: warning: exported type Departure should have comment or be unexported (golint)
    • Line 11: warning: exported type StopDateTime should have comment or be unexported (golint)
    • navitia/vehicleJourney.go
    • Line 11: warning: comment on exported type VehicleJourneyResults should be of the form "VehicleJourneyResults ..." (with optional leading article) (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!


misspell98%

Misspell Finds commonly misspelled English words

    • navitia/types/route.go
    • Line 14: warning: "Frequence" is a misspelling of "Frequencies" (misspell)
    • Line 14: warning: "frequence" is a misspelling of "frequencies" (misspell)
    • Line 31: warning: "Frequence" is a misspelling of "Frequencies" (misspell)
    • Line 31: warning: "frequence" is a misspelling of "frequencies" (misspell)
    • Line 63: warning: "Frequence" is a misspelling of "Frequencies" (misspell)