Preparing report...

Report for github.com/patrickbr/gtfsparser

(v0.0.0-20231219114758-8ac3e7a8c2d9)

A+    Excellent!    Found 6 issues across 22 files

Tweet

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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo77%

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.

    • gtfs/route.go
    • Line 31: warning: cyclomatic complexity 112 of function GetTypeFromExtended() is high (> 15) (gocyclo)
    • feed.go
    • Line 495: warning: cyclomatic complexity 34 of function (*Feed).parseStops() is high (> 15) (gocyclo)
    • Line 234: warning: cyclomatic complexity 26 of function (*Feed).PrefixParse() is high (> 15) (gocyclo)
    • Line 995: warning: cyclomatic complexity 23 of function (*Feed).parseShapes() is high (> 15) (gocyclo)
    • Line 1141: warning: cyclomatic complexity 21 of function (*Feed).parseStopTimes() is high (> 15) (gocyclo)
    • Line 1662: warning: cyclomatic complexity 21 of function (*Feed).parseAttributions() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 18 of function (*Feed).parseRoutes() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 16 of function (*Feed).parseCalendar() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 16 of function (*Feed).parseAgencies() is high (> 15) (gocyclo)
    • mapping.go
    • Line 1142: warning: cyclomatic complexity 31 of function createStopTime() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 25 of function createTranslation() is high (> 15) (gocyclo)
    • Line 1020: warning: cyclomatic complexity 23 of function createStop() is high (> 15) (gocyclo)
    • Line 2061: warning: cyclomatic complexity 21 of function getDate() is high (> 15) (gocyclo)
    • Line 1250: warning: cyclomatic complexity 20 of function createTrip() is high (> 15) (gocyclo)
    • Line 1541: warning: cyclomatic complexity 20 of function createTransfer() is high (> 15) (gocyclo)
    • Line 875: warning: cyclomatic complexity 17 of function createRoute() is high (> 15) (gocyclo)
    • csvparser.go
    • Line 87: warning: cyclomatic complexity 21 of function (*CsvParser).ParseCsvLine() is high (> 15) (gocyclo)
    • feed_test.go
    • Line 14: warning: cyclomatic complexity 16 of function TestFeedParsing() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell86%

Misspell Finds commonly misspelled English words

    • mapping.go
    • Line 1046: warning: "ommitted" is a misspelling of "omitted" (misspell)
    • Line 1055: warning: "ommitted" is a misspelling of "omitted" (misspell)
    • gtfs/service.go
    • Line 126: warning: "expection" is a misspelling of "exception" (misspell)
    • Line 139: warning: "expection" is a misspelling of "exception" (misspell)
    • feed.go
    • Line 2073: warning: "occurances" is a misspelling of "occurrences" (misspell)