Preparing report...

Report for github.com/lugobots/lugo4go

A+    Excellent!    Found 20 issues across 32 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.

    • lugo4go/interfaces.go
    • Line 8: warning: exported type TurnData should have comment or be unexported (golint)
    • Line 13: warning: exported type TurnHandler should have comment or be unexported (golint)
    • lugo4go/pkg/util/config.go
    • Line 13: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 35: warning: exported method Config.ParseConfigFlags should have comment or be unexported (golint)
    • Line 69: warning: exported function LoadConfig should have comment or be unexported (golint)
    • lugo4go/lugo/vector.go
    • Line 9: warning: exported function North should have comment or be unexported (golint)
    • Line 10: warning: exported function South should have comment or be unexported (golint)
    • Line 11: warning: exported function East should have comment or be unexported (golint)
    • Line 12: warning: exported function West should have comment or be unexported (golint)
    • Line 13: warning: exported function NorthEast should have comment or be unexported (golint)
    • Line 14: warning: exported function SouthEast should have comment or be unexported (golint)
    • Line 15: warning: exported function NorthWest should have comment or be unexported (golint)
    • Line 16: warning: exported function SouthWest should have comment or be unexported (golint)
    • Line 18: warning: exported function NewVector should have comment or be unexported (golint)
    • Line 28: warning: exported method Vector.Copy should have comment or be unexported (golint)
    • Line 35: warning: exported method Vector.Perpendicular should have comment or be unexported (golint)
    • Line 42: warning: exported method Vector.MarshalJSON should have comment or be unexported (golint)
    • Line 50: warning: exported method Vector.UnmarshalJSON should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method Vector.Normalize should be of the form "Normalize ..." (golint)
    • Line 74: warning: exported method Vector.SetLength should have comment or be unexported (golint)
    • Line 78: warning: exported method Vector.SetX should have comment or be unexported (golint)
    • Line 86: warning: exported method Vector.SetY should have comment or be unexported (golint)
    • Line 94: warning: exported method Vector.Invert should have comment or be unexported (golint)
    • Line 100: warning: exported method Vector.Scale should have comment or be unexported (golint)
    • Line 109: warning: exported method Vector.Sin should have comment or be unexported (golint)
    • Line 113: warning: exported method Vector.Cos should have comment or be unexported (golint)
    • Line 122: warning: exported method Vector.AngleDegrees should have comment or be unexported (golint)
    • Line 126: warning: exported method Vector.OppositeAngle should have comment or be unexported (golint)
    • Line 130: warning: exported method Vector.AddAngleDegree should have comment or be unexported (golint)
    • Line 140: warning: exported method Vector.Length should have comment or be unexported (golint)
    • Line 144: warning: exported method Vector.Add should have comment or be unexported (golint)
    • Line 155: warning: exported method Vector.Sub should have comment or be unexported (golint)
    • Line 166: warning: exported method Vector.TargetFrom should have comment or be unexported (golint)
    • Line 173: warning: exported method Vector.IsEqualTo should have comment or be unexported (golint)
    • Line 177: warning: exported method Vector.AngleWith should have comment or be unexported (golint)
    • Line 192: warning: exported method Vector.IsObstacle should have comment or be unexported (golint)
    • lugo4go/coach/handler.go
    • Line 10: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 30: warning: exported method Handler.Handle should have comment or be unexported (golint)
    • Line 77: warning: exported function DefineMyState should have comment or be unexported (golint)
    • lugo4go/coach/interfaces.go
    • Line 9: warning: exported type OrderSender should have comment or be unexported (golint)
    • Line 13: warning: exported type Bot should have comment or be unexported (golint)
    • lugo4go/pkg/field/helpers.go
    • Line 7: warning: exported function GetTeam should have comment or be unexported (golint)
    • Line 17: warning: exported function IsBallHolder should have comment or be unexported (golint)
    • Line 27: warning: exported function GetOpponentSide should have comment or be unexported (golint)
    • Line 34: warning: exported function GetOpponentGoal should have comment or be unexported (golint)
    • Line 38: warning: exported function GetPlayer should have comment or be unexported (golint)
    • Line 51: warning: exported function MakeOrderMoveMaxSpeed should have comment or be unexported (golint)
    • Line 55: warning: exported function MakeOrderMove should have comment or be unexported (golint)
    • Line 65: warning: exported function MakeOrderJump should have comment or be unexported (golint)
    • Line 75: warning: exported function MakeOrderKick should have comment or be unexported (golint)
    • Line 92: warning: exported function MakeOrderCatch should have comment or be unexported (golint)
    • lugo4go/pkg/util/defaults.go
    • Line 9: warning: exported function DefaultLogger should have comment or be unexported (golint)
    • Line 19: warning: exported function DefaultConfigurator should have comment or be unexported (golint)
    • Line 35: warning: exported function DefaultInitBundle should have comment or be unexported (golint)
    • lugo4go/lugo/velocity.go
    • Line 38: warning: comment on exported method Velocity.GetNextPoint should be of the form "GetNextPoint ..." (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • lugo4go/coach/sender.go
    • Line 8: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 14: warning: exported type Sender should have comment or be unexported (golint)
    • Line 18: warning: exported method Sender.Send should have comment or be unexported (golint)
    • lugo4go/lugo/order.go
    • Line 11: warning: exported method Order_Move.LugoOrdersUnifier should have comment or be unexported (golint)
    • Line 12: warning: exported method Order_Catch.LugoOrdersUnifier should have comment or be unexported (golint)
    • Line 13: warning: exported method Order_Kick.LugoOrdersUnifier should have comment or be unexported (golint)
    • Line 14: warning: exported method Order_Jump.LugoOrdersUnifier should have comment or be unexported (golint)
    • lugo4go/coach/positioner.go
    • Line 19: warning: comment on exported const MinCols should be of the form "MinCols ..." (golint)
    • Line 21: warning: comment on exported const MinRows should be of the form "MinRows ..." (golint)
    • Line 23: warning: comment on exported const MaxCols should be of the form "MaxCols ..." (golint)
    • Line 25: warning: comment on exported const MaxRows should be of the form "MaxRows ..." (golint)
    • lugo4go/pkg/field/definitions.go
    • Line 17: warning: comment on exported const MaxPlayers should be of the form "MaxPlayers ..." (golint)
    • Line 20: warning: comment on exported const MinPlayers should be of the form "MinPlayers ..." (golint)
    • Line 72: warning: comment on exported const ShotClockTime should be of the form "ShotClockTime ..." (golint)
    • lugo4go/example/bot/bot.go
    • Line 13: warning: exported type Bot should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBot should have comment or be unexported (golint)
    • Line 27: warning: exported method Bot.OnDisputing should have comment or be unexported (golint)
    • Line 31: warning: exported method Bot.OnDefending should have comment or be unexported (golint)
    • Line 35: warning: exported method Bot.OnHolding should have comment or be unexported (golint)
    • Line 39: warning: exported method Bot.OnSupporting should have comment or be unexported (golint)
    • Line 43: warning: exported method Bot.AsGoalkeeper 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!


misspell96%

Misspell Finds commonly misspelled English words

    • lugo4go/coach/positioner_test.go
    • Line 49: warning: "minimals" is a misspelling of "minimalist" (misspell)
    • Line 93: warning: "minimals" is a misspelling of "minimalist" (misspell)
    • Line 159: warning: "minimals" is a misspelling of "minimalist" (misspell)
    • Line 207: warning: "minimals" is a misspelling of "minimalist" (misspell)