Report for github.com/AtScaleInc/revel-cmd

(v1.1.3)

A+    Excellent!    Found 13 issues across 66 files

Tweet

gofmt96%

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


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!


gocyclo84%

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.

    • parser2/source_info_processor.go
    • Line 25: warning: cyclomatic complexity 19 of function (*SourceInfoProcessor).processPackage() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 18 of function (*SourceInfoProcessor).getControllerFunc() is high (> 15) (gocyclo)
    • logger/terminal_format.go
    • Line 157: warning: cyclomatic complexity 18 of function escapeString() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 16 of function TerminalFormatHandler() is high (> 15) (gocyclo)
    • revel/test.go
    • Line 78: warning: cyclomatic complexity 17 of function testApp() is high (> 15) (gocyclo)
    • model/command_config.go
    • Line 69: warning: cyclomatic complexity 29 of function (*CommandConfig).UpdateImportPath() is high (> 15) (gocyclo)
    • Line 154: warning: cyclomatic complexity 18 of function (*CommandConfig).initAppFolder() is high (> 15) (gocyclo)
    • parser/reflect.go
    • Line 59: warning: cyclomatic complexity 18 of function (*processContainer).processPath() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words