Preparing report...

Report for apiote.xyz/p/szczanieckiej

(v0.0.0-20240525080433-a253fb436195)

A+    Excellent!    Found 15 issues across 45 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!


gofmt95%

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


gocyclo73%

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.

    • server/router.go
    • Line 167: warning: cyclomatic complexity 44 of function handleQueryables() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 29 of function handleDepartures() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 21 of function handleLocatables() is high (> 15) (gocyclo)
    • traffic/convert.go
    • Line 875: warning: cyclomatic complexity 31 of function convertStops() is high (> 15) (gocyclo)
    • Line 1079: warning: cyclomatic complexity 31 of function convertLineGraphs() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 24 of function convertCalendarDates() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 22 of function convertCalendar() is high (> 15) (gocyclo)
    • Line 1226: warning: cyclomatic complexity 19 of function convertLines() is high (> 15) (gocyclo)
    • traffic/gzm_ztm.go
    • Line 96: warning: cyclomatic complexity 36 of function (GzmZtm).FeedPrepareZip() is high (> 15) (gocyclo)

ineffassign86%

IneffAssign detects ineffectual assignments in Go code.

    • traffic/access.go
    • Line 114: warning: ineffectual assignment to err (ineffassign)
    • Line 268: warning: ineffectual assignment to err (ineffassign)
    • Line 809: warning: ineffectual assignment to tripOffset (ineffassign)
    • Line 810: warning: ineffectual assignment to order (ineffassign)
    • Line 114: warning: ineffectual assignment to err (ineffassign)
    • Line 268: warning: ineffectual assignment to err (ineffassign)
    • Line 809: warning: ineffectual assignment to tripOffset (ineffassign)
    • Line 810: warning: ineffectual assignment to order (ineffassign)
    • traffic/convert.go
    • Line 322: warning: ineffectual assignment to err (ineffassign)
    • Line 1158: warning: ineffectual assignment to current (ineffassign)
    • Line 322: warning: ineffectual assignment to err (ineffassign)
    • Line 1158: warning: ineffectual assignment to current (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words

    • traffic/poznan_ztm.go
    • Line 67: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 70: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 73: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 76: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 79: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 82: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 85: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 88: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 91: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 94: warning: "capabilites" is a misspelling of "capabilities" (misspell)
    • Line 99: warning: "capabilites" is a misspelling of "capabilities" (misspell)