Preparing report...

Report for github.com/team142/chessfor4

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


gocyclo92%

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.


golint57%

Golint is a linter for Go source code.

    • chessfor4/server/model/chess-meta-describe.go
    • Line 7: warning: exported type MoveDescription should have comment or be unexported (golint)
    • Line 23: warning: exported function CalcMoveDescription should have comment or be unexported (golint)
    • Line 70: warning: exported function CalcPiecesBetween should have comment or be unexported (golint)
    • chessfor4/server/model/messages-out.go
    • Line 45: warning: exported function CreateMessageListOfGames should have comment or be unexported (golint)
    • Line 49: warning: exported type MessageListOfGames should have comment or be unexported (golint)
    • Line 54: warning: exported function CreateMessageShareState should have comment or be unexported (golint)
    • Line 58: warning: exported type MessageShareState should have comment or be unexported (golint)
    • chessfor4/server/model/piece.go
    • Line 34: warning: exported function IsLastTwo should have comment or be unexported (golint)
    • Line 38: warning: exported method Piece.IsEqual should have comment or be unexported (golint)
    • Line 54: warning: exported function CreateRook should have comment or be unexported (golint)
    • chessfor4/server/util/math.go
    • Line 3: warning: exported function Abs should have comment or be unexported (golint)
    • Line 10: warning: exported function OrderPoints should have comment or be unexported (golint)
    • Line 17: warning: exported function GetDirection should have comment or be unexported (golint)
    • chessfor4/server/model/game.go
    • Line 69: warning: exported method Game.FindSpot should have comment or be unexported (golint)
    • Line 143: warning: exported method Game.ChangeSeat should have comment or be unexported (golint)
    • Line 167: warning: exported method Game.RemoveClient should have comment or be unexported (golint)
    • Line 199: warning: exported method Game.ChangeMoveFrom should have comment or be unexported (golint)
    • chessfor4/server/model/tile.go
    • Line 5: warning: exported type Tile should have comment or be unexported (golint)
    • Line 9: warning: exported method Tile.Equal should have comment or be unexported (golint)
    • Line 13: warning: exported method Tile.GetTilesUntil 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!