Preparing report...

Report for github.com/ponzu-cms/ponzu

(v0.11.0)

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


gofmt92%

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


gocyclo83%

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.

    • system/db/content.go
    • Line 466: warning: cyclomatic complexity 19 of function Query() is high (> 15) (gocyclo)
    • Line 710: warning: cyclomatic complexity 17 of function postToJSON() is high (> 15) (gocyclo)
    • Line 175: warning: cyclomatic complexity 16 of function insert() is high (> 15) (gocyclo)
    • system/admin/handlers.go
    • Line 1100: warning: cyclomatic complexity 51 of function contentsHandler() is high (> 15) (gocyclo)
    • Line 1725: warning: cyclomatic complexity 51 of function editHandler() is high (> 15) (gocyclo)
    • Line 2714: warning: cyclomatic complexity 44 of function addonsHandler() is high (> 15) (gocyclo)
    • Line 2231: warning: cyclomatic complexity 36 of function editUploadHandler() is high (> 15) (gocyclo)
    • Line 840: warning: cyclomatic complexity 26 of function uploadContentsHandler() is high (> 15) (gocyclo)
    • Line 2031: warning: cyclomatic complexity 22 of function deleteHandler() is high (> 15) (gocyclo)
    • Line 1586: warning: cyclomatic complexity 21 of function approveContentHandler() is high (> 15) (gocyclo)
    • Line 3000: warning: cyclomatic complexity 19 of function addonHandler() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 17 of function configUsersEditHandler() 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!


misspell97%

Misspell Finds commonly misspelled English words