Preparing report...

Report for github.com/lugobots/the-dummies-go

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


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!


golint40%

Golint is a linter for Go source code.

    • the-dummies-go/dummy/fuzzy.go
    • Line 5: warning: exported type FuzzyScale should have comment or be unexported (golint)
    • Line 8: warning: exported const MustNot should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported const DistanceBeside should have comment (or a comment on this block) or be unexported (golint)
    • the-dummies-go/strategy/regions.go
    • Line 118: warning: exported function GetRegionCode should have comment or be unexported (golint)
    • Line 130: warning: comment on exported function MirrorCoordsToAway should be of the form "MirrorCoordsToAway ..." (golint)
    • the-dummies-go/dummy/decision_holding.go
    • Line 56: warning: exported function ShouldShoot should have comment or be unexported (golint)
    • Line 138: warning: exported function DistanceForShooting should have comment or be unexported (golint)
    • Line 161: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • the-dummies-go/strategy/helpers.go
    • Line 14: warning: exported function DetermineMyState should have comment or be unexported (golint)
    • Line 26: warning: exported function DetermineMyTeamState should have comment or be unexported (golint)
    • Line 51: warning: exported function FindBestPointInterceptBall should have comment or be unexported (golint)
    • Line 54: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 91: warning: comment on exported function WatchOpponentOnMyRoute should be of the form "WatchOpponentOnMyRoute ..." (golint)
    • the-dummies-go/strategy/strategy.go
    • Line 8: warning: exported type TeamState should have comment or be unexported (golint)
    • Line 11: warning: exported const UnderPressure should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Region should have comment or be unexported (golint)
    • Line 34: warning: exported type PlayerRule should have comment or be unexported (golint)
    • Line 37: warning: exported const DefensePlayer should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported var PlayerRegionMap should have comment or be unexported (golint)
    • Line 120: warning: exported function DefinePlayerRule should have comment or be unexported (golint)
    • the-dummies-go/dummy/brain.go
    • Line 12: warning: exported var ClientResponder should have comment or be unexported (golint)
    • Line 13: warning: exported var TeamPlace should have comment or be unexported (golint)
    • Line 14: warning: exported var PlayerNumber should have comment or be unexported (golint)
    • Line 15: warning: exported var MyRule should have comment or be unexported (golint)
    • Line 16: warning: exported var LastHolderFrom should have comment or be unexported (golint)
    • Line 21: warning: exported type Dummy should have comment or be unexported (golint)
    • Line 29: warning: exported method Dummy.React should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method Dummy.ShouldIDisputeForTheBall should be of the form "ShouldIDisputeForTheBall ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!