Preparing report...

Report for github.com/allinbits/apcore

(v0.0.0-20250425211528-9f30856fd86c)

A+    Excellent!    Found 6 issues across 95 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!


gocyclo95%

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.

    • example/app.go
    • Line 268: warning: cyclomatic complexity 71 of function (*App).BuildRoutes() is high (> 15) (gocyclo)
    • models/test/main.go
    • Line 549: warning: cyclomatic complexity 25 of function runFollowersCalls() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 21 of function main() is high (> 15) (gocyclo)
    • Line 1983: warning: cyclomatic complexity 19 of function runUserModelCalls() is high (> 15) (gocyclo)
    • Line 1463: warning: cyclomatic complexity 17 of function runOutboxesCalls() is high (> 15) (gocyclo)
    • Line 1636: warning: cyclomatic complexity 16 of function runInboxesCalls() is high (> 15) (gocyclo)
    • framework/handler.go
    • Line 47: warning: cyclomatic complexity 18 of function BuildHandler() is high (> 15) (gocyclo)
    • Line 389: warning: cyclomatic complexity 16 of function postLoginFn() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • framework/router.go
    • Line 370: warning: ineffectual assignment to err (ineffassign)
    • Line 372: warning: ineffectual assignment to err (ineffassign)
    • Line 421: warning: ineffectual assignment to err (ineffassign)
    • Line 423: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!