Preparing report...

Report for github.com/btmura/ponzi2

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

    • ponzi2/internal/stock/iex/chart.go
    • Line 85: warning: cyclomatic complexity 32 of function (*Client).GetCharts() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 16 of function (*Client).noCacheGetCharts() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • ponzi2/internal/app/view/view.go
    • Line 1: warning: package comment should be of the form "Package view ..." (golint)
    • Line 8: warning: exported const FPS should have comment or be unexported (golint)
    • Line 145: warning: comment on exported type KeyReleaseEvent should be of the form "KeyReleaseEvent ..." (with optional leading article) (golint)
    • ponzi2/internal/app/view/animation/animation.go
    • Line 3: warning: comment on exported type State should be of the form "State ..." (with optional leading article) (golint)
    • Line 7: warning: exported const Stopped should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Animation should have comment or be unexported (golint)
    • Line 21: warning: exported type Opt should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported function Loop should have comment or be unexported (golint)
    • Line 40: warning: exported function Started should have comment or be unexported (golint)
    • Line 46: warning: exported method Animation.Reverse should have comment or be unexported (golint)
    • Line 57: warning: exported method Animation.Start should have comment or be unexported (golint)
    • Line 61: warning: exported method Animation.Stop should have comment or be unexported (golint)
    • Line 65: warning: exported method Animation.Animating should have comment or be unexported (golint)
    • Line 69: warning: exported method Animation.Update should have comment or be unexported (golint)
    • Line 97: warning: exported method Animation.Value should have comment or be unexported (golint)
    • ponzi2/internal/app/view/button/button.go
    • Line 12: warning: exported type Button should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported method Button.StartSpinning should have comment or be unexported (golint)
    • Line 32: warning: exported method Button.Spinning should have comment or be unexported (golint)
    • Line 36: warning: exported method Button.StopSpinning should have comment or be unexported (golint)
    • Line 40: warning: exported method Button.SetBounds should have comment or be unexported (golint)
    • Line 44: warning: exported method Button.ProcessInput should have comment or be unexported (golint)
    • Line 52: warning: exported method Button.Update should have comment or be unexported (golint)
    • Line 56: warning: exported method Button.Render should have comment or be unexported (golint)
    • Line 62: warning: exported method Button.SetClickCallback should have comment or be unexported (golint)
    • Line 66: warning: exported method Button.Close 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!