Preparing report...

Report for github.com/maxgodfrey2004/mines

A    Great!    Found 3 issues across 4 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!


gocyclo75%

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.

    • mines/game/run.go
    • Line 56: warning: cyclomatic complexity 18 of function (*game).listenForEvents() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • mines/main.go
    • Line 26: warning: exported const DifficultyDefault should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign25%

IneffAssign detects ineffectual assignments in Go code.

    • mines/game/renderer.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import github.com/nsf/termbox-go (invalid package name: "") (ineffassign)
    • Line 23: warning: undeclared name: termbox (ineffassign)
    • Line 24: warning: undeclared name: termbox (ineffassign)
    • Line 26: warning: undeclared name: termbox (ineffassign)
    • Line 29: warning: undeclared name: termbox (ineffassign)
    • Line 32: warning: undeclared name: termbox (ineffassign)
    • Line 45: warning: undeclared name: termbox (ineffassign)
    • Line 40: warning: undeclared name: termbox (ineffassign)
    • Line 59: warning: undeclared name: termbox (ineffassign)
    • Line 65: warning: undeclared name: termbox (ineffassign)
    • Line 68: warning: undeclared name: termbox (ineffassign)
    • Line 80: warning: undeclared name: termbox (ineffassign)
    • Line 84: warning: undeclared name: termbox (ineffassign)
    • Line 18: warning: "github.com/nsf/termbox-go" imported but not used (ineffassign)
    • mines/game/run.go
    • Line 45: warning: undeclared name: termbox (ineffassign)
    • Line 57: warning: undeclared name: termbox (ineffassign)
    • Line 57: warning: undeclared name: termbox (ineffassign)
    • Line 60: warning: undeclared name: termbox (ineffassign)
    • Line 61: warning: undeclared name: termbox (ineffassign)
    • Line 63: warning: undeclared name: termbox (ineffassign)
    • Line 65: warning: undeclared name: termbox (ineffassign)
    • Line 67: warning: undeclared name: termbox (ineffassign)
    • Line 69: warning: undeclared name: termbox (ineffassign)
    • Line 71: warning: undeclared name: termbox (ineffassign)
    • Line 89: warning: undeclared name: termbox (ineffassign)
    • Line 91: warning: undeclared name: termbox (ineffassign)
    • Line 93: warning: undeclared name: termbox (ineffassign)
    • Line 218: warning: undeclared name: termbox (ineffassign)
    • Line 240: warning: undeclared name: termbox (ineffassign)
    • Line 18: warning: "github.com/nsf/termbox-go" imported but not used (ineffassign)
    • mines/main.go
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: could not import github.com/maxgodfrey2004/mines/game (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!