Preparing report...

Report for github.com/patrickbr/gtfstidy

(v0.0.0-20240310152501-f3b46cbcc8b1)

A    Great!    Found 20 issues across 35 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!


gofmt82%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo48%

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.

    • gtfstidy.go
    • Line 102: warning: cyclomatic complexity 170 of function main() is high (> 15) (gocyclo)
    • processors/stopduplicateremover.go
    • Line 378: warning: cyclomatic complexity 47 of function (StopDuplicateRemover).stopEquals() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 22 of function (StopDuplicateRemover).combineStops() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 20 of function (StopDuplicateRemover).Run() is high (> 15) (gocyclo)
    • processors/stopreclusterer.go
    • Line 78: warning: cyclomatic complexity 23 of function (StopReclusterer).Run() is high (> 15) (gocyclo)
    • Line 285: warning: cyclomatic complexity 19 of function (*StopReclusterer).createParent() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 19 of function (*StopReclusterer).writeCluster() is high (> 15) (gocyclo)
    • processors/frequencyminizer.go
    • Line 55: warning: cyclomatic complexity 29 of function (FrequencyMinimizer).Run() is high (> 15) (gocyclo)
    • Line 297: warning: cyclomatic complexity 27 of function (FrequencyMinimizer).getCover() is high (> 15) (gocyclo)
    • Line 472: warning: cyclomatic complexity 21 of function (FrequencyMinimizer).hasSameRelStopTimes() is high (> 15) (gocyclo)
    • processors/tripduplicateremover.go
    • Line 407: warning: cyclomatic complexity 27 of function (*TripDuplicateRemover).tripAttrEq() is high (> 15) (gocyclo)
    • Line 241: warning: cyclomatic complexity 20 of function (*TripDuplicateRemover).combineEqTrips() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 17 of function (*TripDuplicateRemover).combineAdjTrips() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words