Preparing report...

Report for github.com/jinge10/go-admin

(v0.0.0-20241007133604-f978d9436311)

A+    Excellent!    Found 17 issues across 286 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo94%

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.

    • plugins/admin/modules/table/generators.go
    • Line 50: warning: cyclomatic complexity 36 of function (*SystemTable).GetManagerTable() is high (> 15) (gocyclo)
    • Line 1367: warning: cyclomatic complexity 22 of function (*SystemTable).GetGenerateForm() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 17 of function (*SystemTable).GetNormalManagerTable() is high (> 15) (gocyclo)
    • Line 666: warning: cyclomatic complexity 16 of function (*SystemTable).GetRolesTable() is high (> 15) (gocyclo)
    • template/types/form/form.go
    • Line 153: warning: cyclomatic complexity 34 of function (Type).Name() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 34 of function (Type).String() is high (> 15) (gocyclo)
    • modules/config/config.go
    • Line 715: warning: cyclomatic complexity 31 of function (*Config).Update() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 20 of function (*Config).ToMap() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 16 of function (Database).ParamStr() is high (> 15) (gocyclo)
    • plugins/admin/modules/table/default.go
    • Line 444: warning: cyclomatic complexity 28 of function (*DefaultTable).getDataFromDatabase() is high (> 15) (gocyclo)
    • Line 629: warning: cyclomatic complexity 24 of function (*DefaultTable).GetDataWithId() is high (> 15) (gocyclo)
    • Line 268: warning: cyclomatic complexity 17 of function (*DefaultTable).getTempModelData() is high (> 15) (gocyclo)
    • plugins/admin/controller/edit.go
    • Line 139: warning: cyclomatic complexity 21 of function (*Handler).EditForm() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 18 of function (*Handler).showForm() is high (> 15) (gocyclo)
    • tests/test.go
    • Line 18: warning: cyclomatic complexity 16 of function Cleaner() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words

    • modules/language/pt-BR.go
    • Line 225: warning: "Tradicional" is a misspelling of "Traditional" (misspell)
    • Line 343: warning: "progresso" is a misspelling of "progression" (misspell)
    • Line 366: warning: "Independente" is a misspelling of "Independence" (misspell)