Preparing report...

Report for github.com/xlc-dev/nova

(v0.2.1)

A+    Excellent!    Found 9 issues across 18 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!


gocyclo50%

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.

    • nova/router.go
    • Line 541: warning: cyclomatic complexity 51 of function validateStringField() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 18 of function setFieldValue() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 16 of function validateSliceField() is high (> 15) (gocyclo)
    • nova/env.go
    • Line 14: warning: cyclomatic complexity 49 of function LoadDotenv() is high (> 15) (gocyclo)
    • main.go
    • Line 339: warning: cyclomatic complexity 26 of function main() is high (> 15) (gocyclo)
    • nova/cli.go
    • Line 986: warning: cyclomatic complexity 21 of function (*CLI).Run() is high (> 15) (gocyclo)
    • refparser_test.go
    • Line 22: warning: cyclomatic complexity 17 of function TestGenerateReferenceMarkdown_Basic() is high (> 15) (gocyclo)
    • nova/openapi.go
    • Line 337: warning: cyclomatic complexity 31 of function generateSchema() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 19 of function buildOperation() is high (> 15) (gocyclo)
    • refparser.go
    • Line 21: warning: cyclomatic complexity 29 of function generateReferenceMarkdown() is high (> 15) (gocyclo)
    • nova/middleware.go
    • Line 254: warning: cyclomatic complexity 23 of function CSRFMiddleware() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 21 of function CORSMiddleware() is high (> 15) (gocyclo)
    • Line 1679: warning: cyclomatic complexity 18 of function MaintenanceModeMiddleware() is high (> 15) (gocyclo)
    • Line 1369: warning: cyclomatic complexity 18 of function RealIPMiddleware() is high (> 15) (gocyclo)
    • Line 1896: warning: cyclomatic complexity 17 of function RateLimitMiddleware() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!