Preparing report...

Report for github.com/anacrolix/stm

A+    Excellent!    Found 6 issues across 16 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!


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!


golint62%

Golint is a linter for Go source code.

    • stm/stmutil/containers.go
    • Line 11: warning: exported type Settish should have comment or be unexported (golint)
    • Line 34: warning: exported function NewSet should have comment or be unexported (golint)
    • Line 38: warning: exported function NewSortedSet should have comment or be unexported (golint)
    • Line 71: warning: exported type Map should have comment or be unexported (golint)
    • Line 75: warning: exported function NewMap should have comment or be unexported (golint)
    • Line 81: warning: exported method Map.Delete should have comment or be unexported (golint)
    • Line 86: warning: exported method Map.Set should have comment or be unexported (golint)
    • Line 91: warning: exported method Map.Range should have comment or be unexported (golint)
    • Line 91: warning: receiver name sm should be consistent with previous receiver name m for Map (golint)
    • Line 100: warning: exported method Map.Iter should have comment or be unexported (golint)
    • Line 100: warning: receiver name sm should be consistent with previous receiver name m for Map (golint)
    • Line 106: warning: exported type SortedMap should have comment or be unexported (golint)
    • Line 110: warning: exported method SortedMap.Set should have comment or be unexported (golint)
    • Line 115: warning: exported method SortedMap.Delete should have comment or be unexported (golint)
    • Line 120: warning: exported method SortedMap.Range should have comment or be unexported (golint)
    • Line 129: warning: exported method SortedMap.Iter should have comment or be unexported (golint)
    • Line 151: warning: exported function NewSortedMap should have comment or be unexported (golint)
    • Line 157: warning: exported type Mappish should have comment or be unexported (golint)
    • Line 166: warning: exported function GetLeft should have comment or be unexported (golint)
    • Line 178: warning: exported type Lenner should have comment or be unexported (golint)
    • Line 182: warning: exported type List should have comment or be unexported (golint)
    • stm/funcs.go
    • Line 43: warning: exported function WouldBlock should have comment or be unexported (golint)
    • Line 151: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 158: warning: exported type Operation should have comment or be unexported (golint)
    • Line 160: warning: exported function VoidOperation should have comment or be unexported (golint)
    • Line 167: warning: exported function AtomicModify should have comment or be unexported (golint)
    • stm/var.go
    • Line 8: warning: comment on exported type Var should be of the form "Var ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported function NewVar should be of the form "NewVar ..." (golint)
    • Line 55: warning: exported function NewCustomVar should have comment or be unexported (golint)
    • Line 64: warning: exported function NewBuiltinEqVar should have comment or be unexported (golint)
    • stm/rate/ratelimit.go
    • Line 15: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 22: warning: exported const Inf should have comment or be unexported (golint)
    • Line 24: warning: exported type Limit should have comment or be unexported (golint)
    • Line 30: warning: exported function Every should have comment or be unexported (golint)
    • Line 37: warning: exported function NewLimiter should have comment or be unexported (golint)
    • Line 75: warning: exported method Limiter.Allow should have comment or be unexported (golint)
    • Line 79: warning: exported method Limiter.AllowN should have comment or be unexported (golint)
    • Line 85: warning: exported method Limiter.AllowStm should have comment or be unexported (golint)
    • Line 101: warning: exported method Limiter.Wait should have comment or be unexported (golint)
    • Line 105: warning: exported method Limiter.WaitN 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!