Preparing report...

Report for github.com/stitchfix/mab

A+    Excellent!    Found 11 issues across 27 files

Tweet

gofmt92%

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!


golint77%

Golint is a linter for Go source code.

    • mab/dists.go
    • Line 16: warning: exported type NormalDist should have comment or be unexported (golint)
    • Line 20: warning: exported method NormalDist.Support should have comment or be unexported (golint)
    • Line 34: warning: exported type BetaDist should have comment or be unexported (golint)
    • Line 38: warning: exported method BetaDist.Support should have comment or be unexported (golint)
    • Line 51: warning: exported type PointDist should have comment or be unexported (golint)
    • Line 55: warning: exported method PointDist.Mean should have comment or be unexported (golint)
    • Line 59: warning: exported method PointDist.CDF should have comment or be unexported (golint)
    • Line 66: warning: exported method PointDist.Prob should have comment or be unexported (golint)
    • Line 73: warning: exported method PointDist.Rand should have comment or be unexported (golint)
    • Line 77: warning: exported method PointDist.Support should have comment or be unexported (golint)
    • mab/http_reward_source.go
    • Line 84: warning: exported type ErrRewardNon2XX should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type HttpDoer should be of the form "HttpDoer ..." (with optional leading article) (golint)
    • Line 123: warning: exported method ParseFunc.Parse should have comment or be unexported (golint)
    • Line 128: warning: exported method MarshalFunc.Marshal should have comment or be unexported (golint)
    • mab/thompson.go
    • Line 7: warning: exported function NewThompson should have comment or be unexported (golint)
    • Line 13: warning: exported type Thompson should have comment or be unexported (golint)
    • Line 17: warning: exported type Integrator should have comment or be unexported (golint)
    • Line 21: warning: exported method Thompson.ComputeProbs 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!


misspell88%

Misspell Finds commonly misspelled English words