Preparing report...

Report for github.com/armhold/gocarina

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


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!


golint64%

Golint is a linter for Go source code.

    • gocarina/bw_image.go
    • Line 22: warning: exported method Converted.ColorModel should have comment or be unexported (golint)
    • Line 26: warning: exported method Converted.Bounds should have comment or be unexported (golint)
    • Line 44: warning: exported method Converted.SubImage should have comment or be unexported (golint)
    • Line 53: warning: exported function BlackWhiteImage should have comment or be unexported (golint)
    • Line 57: warning: exported function IsBlack should have comment or be unexported (golint)
    • Line 63: warning: exported function IsWhite should have comment or be unexported (golint)
    • gocarina/image.go
    • Line 100: warning: comment on exported function AddNoise should be of the form "AddNoise ..." (golint)
    • Line 114: warning: comment on exported function ConvertToRGBA should be of the form "ConvertToRGBA ..." (golint)
    • gocarina/network.go
    • Line 20: warning: exported const NumOutputs should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: comment on exported method Network.Recognize should be of the form "Recognize ..." (golint)
    • Line 106: warning: exported method Network.Save should have comment or be unexported (golint)
    • Line 123: warning: exported function RestoreNetwork should have comment or be unexported (golint)
    • gocarina/solver.go
    • Line 74: warning: comment on exported type ByWordLength should be of the form "ByWordLength ..." (with optional leading article) (golint)
    • Line 94: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • gocarina/tile.go
    • Line 19: warning: exported function NewTile should have comment or be unexported (golint)
    • Line 73: warning: comment on exported method Tile.SaveBoundedAndReduced should be of the form "SaveBoundedAndReduced ..." (golint)

license0%

Checks whether your project has a LICENSE file.


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!