Preparing report...

Report for github.com/gogap/gojs-tool

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


gocyclo80%

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.


golint0%

Golint is a linter for Go source code.

    • gojs-tool/gojs/parser.go
    • Line 13: warning: exported type GenerateOptions should have comment or be unexported (golint)
    • Line 25: warning: exported function Parser should have comment or be unexported (golint)
    • Line 90: warning: exported function GenerateCode should have comment or be unexported (golint)
    • gojs-tool/gojs/goja.go
    • Line 10: warning: exported type GojaModule should have comment or be unexported (golint)
    • Line 18: warning: exported function NewGojaModule should have comment or be unexported (golint)
    • Line 29: warning: exported method GojaModule.Name should have comment or be unexported (golint)
    • Line 33: warning: exported method GojaModule.Set should have comment or be unexported (golint)
    • Line 42: warning: exported method GojaModule.Require should have comment or be unexported (golint)
    • Line 51: warning: exported method GojaModule.Enable should have comment or be unexported (golint)
    • Line 55: warning: exported method GojaModule.Register should have comment or be unexported (golint)
    • gojs-tool/gojs/gojs.go
    • Line 3: warning: exported type Objects should have comment or be unexported (golint)
    • Line 5: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 9: warning: exported type Object should have comment or be unexported (golint)
    • Line 14: warning: exported type Module should have comment or be unexported (golint)
    • Line 21: warning: exported type TemplateVars should have comment or be unexported (golint)
    • gojs-tool/gojs/otto.go
    • Line 7: warning: exported type OttoModule should have comment or be unexported (golint)
    • Line 14: warning: exported function NewOttoModule should have comment or be unexported (golint)
    • Line 25: warning: exported method OttoModule.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method OttoModule.Register should have comment or be unexported (golint)
    • Line 33: warning: exported method OttoModule.Set should have comment or be unexported (golint)
    • Line 42: warning: exported method OttoModule.Enable 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!