Preparing report...

Report for github.com/frankkopp/FrankyGo

A    Great!    Found 45 issues across 93 files

Tweet

gofmt74%

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!


golint74%

Golint is a linter for Go source code.

    • FrankyGo/internal/types/bitboard.go
    • Line 474: warning: don't use underscores in Go names; const FileA_Bb should be FileABb (golint)
    • Line 475: warning: don't use underscores in Go names; const FileB_Bb should be FileBBb (golint)
    • Line 476: warning: don't use underscores in Go names; const FileC_Bb should be FileCBb (golint)
    • Line 477: warning: don't use underscores in Go names; const FileD_Bb should be FileDBb (golint)
    • Line 478: warning: don't use underscores in Go names; const FileE_Bb should be FileEBb (golint)
    • Line 479: warning: don't use underscores in Go names; const FileF_Bb should be FileFBb (golint)
    • Line 480: warning: don't use underscores in Go names; const FileG_Bb should be FileGBb (golint)
    • Line 481: warning: don't use underscores in Go names; const FileH_Bb should be FileHBb (golint)
    • Line 483: warning: don't use underscores in Go names; const Rank1_Bb should be Rank1Bb (golint)
    • Line 484: warning: don't use underscores in Go names; const Rank2_Bb should be Rank2Bb (golint)
    • Line 485: warning: don't use underscores in Go names; const Rank3_Bb should be Rank3Bb (golint)
    • Line 486: warning: don't use underscores in Go names; const Rank4_Bb should be Rank4Bb (golint)
    • Line 487: warning: don't use underscores in Go names; const Rank5_Bb should be Rank5Bb (golint)
    • Line 488: warning: don't use underscores in Go names; const Rank6_Bb should be Rank6Bb (golint)
    • Line 489: warning: don't use underscores in Go names; const Rank7_Bb should be Rank7Bb (golint)
    • Line 490: warning: don't use underscores in Go names; const Rank8_Bb should be Rank8Bb (golint)
    • FrankyGo/internal/openingbook/openingbook.go
    • Line 27: warning: package comment should be of the form "Package openingbook ..." (golint)
    • Line 79: warning: exported var FormatFromString should have comment or be unexported (golint)
    • Line 241: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 589: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • FrankyGo/internal/search/alphabeta.go
    • Line 39: warning: should not use dot imports (golint)
    • Line 44: warning: should not use dot imports (golint)
    • Line 249: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 822: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1040: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • FrankyGo/internal/position/position.go
    • Line 47: warning: should not use dot imports (golint)
    • Line 71: warning: comment on exported type Position should be of the form "Position ..." (with optional leading article) (golint)
    • Line 536: warning: comment on exported method Position.CheckRepetitions should be of the form "CheckRepetitions ..." (golint)
    • Line 998: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!