Preparing report...

Report for github.com/leandroveronezi/pug

A    Great!    Found 6 issues across 7 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!


gocyclo71%

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.


golint28%

Golint is a linter for Go source code.

    • pug/singleton.go
    • Line 26: warning: exported function GetApplication should have comment or be unexported (golint)
    • pug/router/singleton.go
    • Line 12: warning: exported type TRoute should have comment or be unexported (golint)
    • Line 18: warning: exported type TRouter should have comment or be unexported (golint)
    • Line 128: warning: exported function GetRouter should have comment or be unexported (golint)
    • Line 141: warning: exported method TRouter.CheckRoute should have comment or be unexported (golint)
    • Line 205: warning: exported method TRouter.Add should have comment or be unexported (golint)
    • Line 213: warning: exported method TRouter.Push should have comment or be unexported (golint)
    • Line 252: warning: exported method TRouter.Render should have comment or be unexported (golint)
    • pug/console/console.go
    • Line 5: warning: comment on exported function Error should be of the form "Error ..." (golint)
    • Line 14: warning: comment on exported function Log should be of the form "Log ..." (golint)
    • Line 23: warning: comment on exported function Warn should be of the form "Warn ..." (golint)
    • Line 32: warning: comment on exported function Info should be of the form "Info ..." (golint)
    • Line 41: warning: comment on exported function Table should be of the form "Table ..." (golint)
    • Line 49: warning: exported function Clear should have comment or be unexported (golint)
    • Line 53: warning: comment on exported function Group should be of the form "Group ..." (golint)
    • Line 62: warning: comment on exported function GroupCollapsed should be of the form "GroupCollapsed ..." (golint)
    • Line 72: warning: comment on exported function GroupEnd should be of the form "GroupEnd ..." (golint)
    • Line 80: warning: comment on exported function Trace should be of the form "Trace ..." (golint)
    • Line 88: warning: comment on exported function Time should be of the form "Time ..." (golint)
    • Line 96: warning: comment on exported function TimeEnd should be of the form "TimeEnd ..." (golint)
    • Line 105: warning: comment on exported function Count should be of the form "Count ..." (golint)
    • Line 113: warning: comment on exported function Dir should be of the form "Dir ..." (golint)
    • pug/data/type.go
    • Line 8: warning: exported type FnChange should have comment or be unexported (golint)
    • Line 10: warning: exported function FuncChange should have comment or be unexported (golint)
    • Line 14: warning: exported type DataField should have comment or be unexported (golint)
    • Line 23: warning: exported method DataField.Value should have comment or be unexported (golint)
    • Line 33: warning: exported method DataField.Set should have comment or be unexported (golint)
    • Line 44: warning: exported method DataField.SetJS should have comment or be unexported (golint)
    • Line 65: warning: exported method DataField.BindA should have comment or be unexported (golint)
    • Line 77: warning: exported method DataField.Bind should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words

    • pug/console/console.go
    • Line 7: warning: "argumentos" is a misspelling of "arguments" (misspell)
    • Line 17: warning: "argumentos" is a misspelling of "arguments" (misspell)
    • Line 25: warning: "argumentos" is a misspelling of "arguments" (misspell)
    • Line 34: warning: "argumentos" is a misspelling of "arguments" (misspell)