Preparing report...

Report for github.com/natdm/typewriter

A    Great!    Found 8 issues across 12 files

Tweet

gofmt91%

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!


gocyclo91%

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.

    • typewriter/parse/parse.go
    • Line 196: warning: cyclomatic complexity 22 of function Type() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 17 of function parseType() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • typewriter/examples/package/example.go
    • Line 3: warning: exported type MyNumber should have comment or be unexported (golint)
    • Line 5: warning: exported type Thing should have comment or be unexported (golint)
    • Line 9: warning: exported type DataType should have comment or be unexported (golint)
    • typewriter/examples/example.go
    • Line 22: warning: exported type MyInvalidJsType should have comment or be unexported (golint)
    • Line 54: warning: exported type ExternalEmbedded should have comment or be unexported (golint)
    • Line 59: warning: exported type Items should have comment or be unexported (golint)
    • typewriter/template/template.go
    • Line 23: warning: exported type TypeSpec should have comment or be unexported (golint)
    • Line 51: warning: exported method TimeType.Template should have comment or be unexported (golint)
    • Line 64: warning: exported method PackageType.Template should have comment or be unexported (golint)
    • Line 82: warning: exported method Basic.Template should have comment or be unexported (golint)
    • Line 86: warning: exported method Basic.IsPointer should have comment or be unexported (golint)
    • Line 90: warning: exported type Map should have comment or be unexported (golint)
    • Line 95: warning: exported method Map.Template should have comment or be unexported (golint)
    • Line 112: warning: exported method Map.IsPointer should have comment or be unexported (golint)
    • Line 123: warning: exported method Array.Template should have comment or be unexported (golint)
    • Line 147: warning: exported method Array.IsPointer should have comment or be unexported (golint)
    • Line 162: warning: exported method Struct.Template should have comment or be unexported (golint)
    • Line 202: warning: exported method Field.Template should have comment or be unexported (golint)
    • Line 260: warning: exported function GetTag should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell91%

Misspell Finds commonly misspelled English words