Preparing report...

Report for github.com/uxtoolkit/cog

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


gocyclo100%

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.

No problems detected. Good job!


golint0%

Golint is a linter for Go source code.

    • cog/cog.go
    • Line 13: warning: exported var DefaultTemplatesDirectoryName should have comment or be unexported (golint)
    • Line 14: warning: exported var DefaultGoSourcePath should have comment or be unexported (golint)
    • Line 15: warning: exported var TemplateFileExtension should have comment or be unexported (golint)
    • Line 16: warning: exported var ReactivityEnabled should have comment or be unexported (golint)
    • Line 17: warning: exported var VDOMEnabled should have comment or be unexported (golint)
    • Line 19: warning: exported type Cog should have comment or be unexported (golint)
    • cog/uxcog.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 21: warning: exported type UXCog should have comment or be unexported (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported method UXCog.ID should have comment or be unexported (golint)
    • Line 50: warning: exported method UXCog.SetID should have comment or be unexported (golint)
    • Line 54: warning: exported method UXCog.SetCleanupFunc should have comment or be unexported (golint)
    • Line 58: warning: exported method UXCog.SetElement should have comment or be unexported (golint)
    • Line 62: warning: exported method UXCog.Element should have comment or be unexported (golint)
    • Line 66: warning: exported method UXCog.CogInit should have comment or be unexported (golint)
    • Line 81: warning: exported method UXCog.TemplateSet should have comment or be unexported (golint)
    • Line 85: warning: exported method UXCog.SetTemplateSet should have comment or be unexported (golint)
    • Line 89: warning: exported method UXCog.CogType should have comment or be unexported (golint)
    • Line 93: warning: exported method UXCog.SetCogType should have comment or be unexported (golint)
    • Line 97: warning: exported method UXCog.CogTemplatePath should have comment or be unexported (golint)
    • Line 101: warning: exported method UXCog.SetCogTemplatePath should have comment or be unexported (golint)
    • Line 105: warning: exported method UXCog.RegisterCogTemplates should have comment or be unexported (golint)
    • Line 109: warning: exported method UXCog.GetProps should have comment or be unexported (golint)
    • Line 114: warning: exported method UXCog.SetProp should have comment or be unexported (golint)
    • Line 123: warning: exported method UXCog.BatchPropUpdate should have comment or be unexported (golint)
    • Line 134: warning: exported method UXCog.RenderCogTemplate should have comment or be unexported (golint)
    • Line 162: warning: exported method UXCog.Render should have comment or be unexported (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!