Preparing report...

Report for github.com/Masterminds/engine

A    Great!    Found 10 issues across 20 files

Tweet

gofmt85%

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!


gocyclo90%

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.


golint60%

Golint is a linter for Go source code.

    • engine/form/secure_token.go
    • Line 7: warning: comment on exported var SecureTokenName should be of the form "SecureTokenName ..." (golint)
    • Line 12: warning: comment on exported var SecurityTokenLength should be of the form "SecurityTokenLength ..." (golint)
    • Line 15: warning: comment on exported function SecurityToken should be of the form "SecurityToken ..." (golint)
    • engine/engine.go
    • Line 18: warning: error var NoTemplateFound should have name of the form ErrFoo (golint)
    • Line 20: warning: error var NoAssetFound should have name of the form ErrFoo (golint)
    • Line 22: warning: error var IllegalName should have name of the form ErrFoo (golint)
    • Line 25: warning: exported var NamedTemplateSeparator should have comment or be unexported (golint)
    • Line 88: warning: exported type Engine should have comment or be unexported (golint)
    • Line 167: warning: should omit 2nd value from range; this loop is equivalent to `for rel := range ...` (golint)
    • Line 234: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • engine/form/button.go
    • Line 3: warning: exported type Button should have comment or be unexported (golint)
    • Line 9: warning: exported function NewButton should have comment or be unexported (golint)
    • engine/form/form.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 43: warning: exported type OptionalBool should have comment or be unexported (golint)
    • Line 46: warning: comment on exported const ONone should be of the form "ONone ..." (golint)
    • Line 48: warning: comment on exported const OTrue should be of the form "OTrue ..." (golint)
    • Line 50: warning: comment on exported const OFalse should be of the form "OFalse ..." (golint)
    • Line 55: warning: comment on exported const LTR should be of the form "LTR ..." (golint)
    • Line 57: warning: comment on exported const RTL should be of the form "RTL ..." (golint)
    • Line 59: warning: comment on exported const Auto should be of the form "Auto ..." (golint)
    • Line 99: warning: comment on exported method HTML.Attach should be of the form "Attach ..." (golint)
    • engine/form/form_handler.go
    • Line 82: warning: exported method FormHandler.Get should have comment or be unexported (golint)
    • Line 86: warning: exported method FormHandler.Remove should have comment or be unexported (golint)
    • engine/form/input.go
    • Line 57: warning: comment on exported type ButtonInput should be of the form "ButtonInput ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words