Preparing report...

Report for github.com/danicat/pacgo

A+    Excellent!    Found 14 issues across 17 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!


gocyclo88%

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.


golint70%

Golint is a linter for Go source code.

    • pacgo/stepxx/sprite.go
    • Line 12: warning: exported type Point should have comment or be unexported (golint)
    • Line 16: warning: exported method Point.Up should have comment or be unexported (golint)
    • Line 27: warning: exported method Point.Down should have comment or be unexported (golint)
    • Line 38: warning: exported method Point.Left should have comment or be unexported (golint)
    • Line 49: warning: exported method Point.Right should have comment or be unexported (golint)
    • Line 60: warning: exported function IsLegal should have comment or be unexported (golint)
    • pacgo/step10/main.go
    • Line 37: warning: exported type GhostStatus should have comment or be unexported (golint)
    • Line 40: warning: exported const GhostStatusNormal should have comment (or a comment on this block) or be unexported (golint)
    • pacgo/stepxx/chaser.go
    • Line 19: warning: exported method Chaser.Pos should have comment or be unexported (golint)
    • Line 25: warning: exported method Chaser.Img should have comment or be unexported (golint)
    • Line 29: warning: exported method Chaser.Move should have comment or be unexported (golint)
    • Line 44: warning: exported type Node should have comment or be unexported (golint)
    • Line 98: warning: exported type PathFinder should have comment or be unexported (golint)
    • Line 104: warning: exported type PointSet should have comment or be unexported (golint)
    • Line 105: warning: exported type PointInfo should have comment or be unexported (golint)
    • Line 111: warning: exported method PointInfo.Cost should have comment or be unexported (golint)
    • pacgo/stepxx/ghost.go
    • Line 19: warning: exported method Ghost.Pos should have comment or be unexported (golint)
    • Line 25: warning: exported method Ghost.Img should have comment or be unexported (golint)
    • Line 29: warning: exported method Ghost.Move should have comment or be unexported (golint)
    • pacgo/stepxx/player.go
    • Line 27: warning: exported method Player.Pos should have comment or be unexported (golint)
    • Line 33: warning: exported method Player.Img should have comment or be unexported (golint)
    • Line 37: warning: exported method Player.Kill should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign41%

IneffAssign detects ineffectual assignments in Go code.

    • pacgo/step03/main.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step07/main.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step02/main.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step08/main.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step06/main.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step04/main.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step09/main.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/stepxx/main.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step05/main.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)
    • pacgo/step10/main.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/danicat/simpleansi (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!