Preparing report...

Report for github.com/bobg/bs

A+    Excellent!    Found 12 issues across 58 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!


gocyclo89%

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.

    • bs/cmd/bs/ls.go
    • Line 17: warning: cyclomatic complexity 17 of function (maincmd).ls() is high (> 15) (gocyclo)

golint89%

Golint is a linter for Go source code.

    • bs/store/rpc/server.go
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 24: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 28: warning: exported method Server.Get should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.Put should have comment or be unexported (golint)
    • Line 56: warning: exported method Server.ListRefs should have comment or be unexported (golint)
    • Line 70: warning: exported method Server.GetAnchor should have comment or be unexported (golint)
    • Line 87: warning: exported method Server.ListAnchors should have comment or be unexported (golint)
    • bs/store/lru/lru.go
    • Line 88: warning: exported method Store.GetAnchor should have comment or be unexported (golint)
    • Line 96: warning: exported method Store.ListAnchors should have comment or be unexported (golint)
    • bs/store/transform/transform.go
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 62: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 104: warning: exported method Store.Put should have comment or be unexported (golint)
    • Line 161: warning: exported method Store.ListRefs should have comment or be unexported (golint)
    • bs/store/transform/transformers.go
    • Line 16: warning: exported method LZW.In should have comment or be unexported (golint)
    • Line 24: warning: exported method LZW.Out should have comment or be unexported (golint)
    • Line 36: warning: exported method Flate.In should have comment or be unexported (golint)
    • Line 48: warning: exported method Flate.Out should have comment or be unexported (golint)
    • bs/store/logging/logging.go
    • Line 20: warning: exported type Store should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 38: warning: exported method Store.ListRefs should have comment or be unexported (golint)
    • Line 51: warning: exported method Store.Put should have comment or be unexported (golint)
    • Line 61: warning: exported method Store.GetAnchor should have comment or be unexported (golint)
    • Line 71: warning: exported method Store.ListAnchors should have comment or be unexported (golint)
    • bs/store/rpc/client.go
    • Line 21: warning: exported type Client should have comment or be unexported (golint)
    • Line 25: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 29: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.ListRefs should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.Put should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.GetAnchor should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.ListAnchors should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!