Preparing report...

Report for github.com/armhold/polygen

A    Great!    Found 8 issues across 11 files

Tweet

gofmt90%

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!


golint36%

Golint is a linter for Go source code.

    • polygen/image.go
    • Line 15: warning: exported function MustReadImage should have comment or be unexported (golint)
    • Line 73: warning: comment on exported function ConvertToRGBA should be of the form "ConvertToRGBA ..." (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • polygen/safe_image.go
    • Line 15: warning: exported function NewSafeImage should have comment or be unexported (golint)
    • Line 19: warning: exported method SafeImage.Update should have comment or be unexported (golint)
    • Line 25: warning: exported method SafeImage.Value should have comment or be unexported (golint)
    • polygen/server.go
    • Line 34: warning: exported type Page should have comment or be unexported (golint)
    • Line 109: warning: exported function Serve should have comment or be unexported (golint)
    • Line 122: warning: exported function SplitPath should have comment or be unexported (golint)
    • polygen/stats.go
    • Line 15: warning: exported function NewStats should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method Stats.Increment should be of the form "Increment ..." (golint)
    • Line 26: warning: exported method Stats.Print should have comment or be unexported (golint)
    • polygen/util.go
    • Line 26: warning: comment on exported function DeriveCheckpointFile should be of the form "DeriveCheckpointFile ..." (golint)
    • polygen/candidate.go
    • Line 14: warning: exported const MutationAlpha should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const PopulationCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported var Mutations should have comment or be unexported (golint)
    • Line 227: warning: receiver name cd should be consistent with previous receiver name c for Candidate (golint)
    • Line 259: warning: receiver name cd should be consistent with previous receiver name c for Candidate (golint)
    • Line 271: warning: comment on exported type ByFitness should be of the form "ByFitness ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!