Preparing report...

Report for github.com/ayoisaiah/golife

A+    Excellent!    Found 3 issues across 7 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!


gocyclo85%

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.

    • golife/game.go
    • Line 166: warning: cyclomatic complexity 18 of function (*Game).Start() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • golife/themes.go
    • Line 9: warning: exported type Theme should have comment or be unexported (golint)
    • Line 21: warning: exported var ThemeBlackOnWhite should have comment or be unexported (golint)
    • Line 28: warning: exported var ThemeWhiteOnBlack should have comment or be unexported (golint)
    • Line 35: warning: exported function ListThemes should have comment or be unexported (golint)
    • golife/game.go
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • golife/rules.go
    • Line 5: warning: exported type Rule should have comment or be unexported (golint)
    • Line 37: warning: exported var RuleDefault should have comment or be unexported (golint)
    • Line 43: warning: exported var RuleDayAndNight should have comment or be unexported (golint)
    • Line 49: warning: exported var RuleCoral should have comment or be unexported (golint)
    • Line 55: warning: exported var Rule2x2 should have comment or be unexported (golint)
    • Line 61: warning: exported var Rule34Life should have comment or be unexported (golint)
    • Line 67: warning: exported var RuleAmoeba should have comment or be unexported (golint)
    • Line 73: warning: exported var RuleAssimilation should have comment or be unexported (golint)
    • Line 79: warning: exported var RuleCoagulations should have comment or be unexported (golint)
    • Line 85: warning: exported var RuleDiamoeba should have comment or be unexported (golint)
    • Line 91: warning: exported var RuleFlakes should have comment or be unexported (golint)
    • Line 97: warning: exported var RuleGnarl should have comment or be unexported (golint)
    • Line 103: warning: exported var RuleHighLife should have comment or be unexported (golint)
    • Line 109: warning: exported var RuleInverseLife should have comment or be unexported (golint)
    • Line 115: warning: exported var RuleLongLife should have comment or be unexported (golint)
    • Line 121: warning: exported var RuleMaze should have comment or be unexported (golint)
    • Line 127: warning: exported var RuleMazectric should have comment or be unexported (golint)
    • Line 133: warning: exported var RuleMove should have comment or be unexported (golint)
    • Line 139: warning: exported var RulePseudoLife should have comment or be unexported (golint)
    • Line 145: warning: exported var RuleReplicator should have comment or be unexported (golint)
    • Line 151: warning: exported var RuleSeeds should have comment or be unexported (golint)
    • Line 157: warning: exported var RuleServiettes should have comment or be unexported (golint)
    • Line 163: warning: exported var RuleStains should have comment or be unexported (golint)
    • Line 169: warning: exported var RuleWalledCities should have comment or be unexported (golint)
    • Line 175: warning: exported function ListRules 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!