Preparing report...

Report for github.com/ndlib/noids

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


gocyclo92%

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.

    • noids/main.go
    • Line 98: warning: cyclomatic complexity 17 of function main() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • noids/server.go
    • Line 18: warning: exported function PoolsHandler should have comment or be unexported (golint)
    • Line 23: warning: exported function NewPoolHandler should have comment or be unexported (golint)
    • Line 44: warning: exported function PoolShowHandler should have comment or be unexported (golint)
    • Line 57: warning: exported function PoolOpenHandler should have comment or be unexported (golint)
    • Line 61: warning: exported function PoolCloseHandler should have comment or be unexported (golint)
    • Line 77: warning: exported function MintHandler should have comment or be unexported (golint)
    • Line 107: warning: exported function AdvancePastHandler should have comment or be unexported (golint)
    • Line 132: warning: exported function StatsHandler should have comment or be unexported (golint)
    • noids/noid/noid.go
    • Line 1: warning: package comment should be of the form "Package noid ..." (golint)
    • Line 53: warning: error var TemplateError should have name of the form ErrFoo (golint)
    • Line 53: warning: exported var TemplateError should have comment or be unexported (golint)
    • Line 57: warning: exported const XDigit should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: comment on exported function NewNoid should be of the form "NewNoid ..." (golint)
    • noids/main.go
    • Line 21: warning: exported type Reopener should have comment or be unexported (golint)
    • Line 30: warning: exported function NewReopener should have comment or be unexported (golint)
    • Line 80: warning: exported type Config should have comment or be unexported (golint)
    • noids/pools.go
    • Line 40: warning: exported var DefaultStore should have comment or be unexported (golint)
    • Line 42: warning: error var NameExists should have name of the form ErrFoo (golint)
    • Line 43: warning: error var NoSuchPool should have name of the form ErrFoo (golint)
    • Line 44: warning: error var PoolEmpty should have name of the form ErrFoo (golint)
    • Line 45: warning: error var PoolClosed should have name of the form ErrFoo (golint)
    • Line 46: warning: error var InvalidId should have name of the form ErrFoo (golint)
    • Line 49: warning: exported function NewPoolGroup should have comment or be unexported (golint)
    • noids/save_db.go
    • Line 20: warning: comment on exported function NewDbFileStore should be of the form "NewDbFileStore ..." (golint)
    • noids/save_null.go
    • Line 5: warning: exported type NullStore should have comment or be unexported (golint)
    • Line 7: warning: exported method NullStore.SavePool should have comment or be unexported (golint)
    • Line 12: warning: exported method NullStore.LoadAllPools should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words