Preparing report...

Report for github.com/GNURub/beego

D    Needs lots of improvement    Found 41 issues across 207 files

Tweet

gofmt0%

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

An error occurred while running this test (signal: killed)


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!


gocyclo87%

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.

    • beego/templatefunc.go
    • Line 274: warning: cyclomatic complexity 44 of function parseFormToStruct() is high (> 15) (gocyclo)
    • Line 711: warning: cyclomatic complexity 18 of function MapGet() is high (> 15) (gocyclo)
    • beego/templatefunc_test.go
    • Line 247: warning: cyclomatic complexity 26 of function TestParseFormTag() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 19 of function TestParseForm() is high (> 15) (gocyclo)
    • beego/cache/cache_test.go
    • Line 100: warning: cyclomatic complexity 20 of function TestGCache() is high (> 15) (gocyclo)
    • Line 23: warning: cyclomatic complexity 20 of function TestCache() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 18 of function TestFileCache() is high (> 15) (gocyclo)
    • beego/router.go
    • Line 660: warning: cyclomatic complexity 74 of function (*ControllerRegister).ServeHTTP() is high (> 15) (gocyclo)
    • Line 523: warning: cyclomatic complexity 40 of function (*ControllerRegister).getURL() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function (*ControllerRegister).addWithMethodParams() is high (> 15) (gocyclo)
    • beego/app.go
    • Line 63: warning: cyclomatic complexity 35 of function (*App).Run() is high (> 15) (gocyclo)
    • beego/httplib/httplib.go
    • Line 432: warning: cyclomatic complexity 20 of function (*BeegoHTTPRequest).DoRequest() is high (> 15) (gocyclo)
    • Line 364: warning: cyclomatic complexity 17 of function (*BeegoHTTPRequest).buildURL() is high (> 15) (gocyclo)
    • beego/utils/debug.go
    • Line 164: warning: cyclomatic complexity 54 of function printKeyValue() is high (> 15) (gocyclo)
    • Line 374: warning: cyclomatic complexity 17 of function PrintPointerInfo() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 17 of function isSimpleType() is high (> 15) (gocyclo)
    • beego/tree.go
    • Line 294: warning: cyclomatic complexity 36 of function (*Tree).match() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 31 of function (*Tree).addtree() is high (> 15) (gocyclo)
    • Line 479: warning: cyclomatic complexity 25 of function splitSegment() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 23 of function (*Tree).addseg() is high (> 15) (gocyclo)
    • Line 394: warning: cyclomatic complexity 20 of function (*leafInfo).match() is high (> 15) (gocyclo)
    • beego/parser.go
    • Line 255: warning: cyclomatic complexity 24 of function parseComment() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 20 of function genRouterCode() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

An error occurred while running this test (signal: killed)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!