Preparing report...

Report for github.com/cagedmantis/sabre

(v0.0.0-20180120040212-284e23e9a5f6)

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


golint15%

Golint is a linter for Go source code.

    • file/file.go
    • Line 19: warning: exported type FileSystem should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFileSystem should have comment or be unexported (golint)
    • Line 89: warning: exported type File should have comment or be unexported (golint)
    • Line 95: warning: exported function NewFile should have comment or be unexported (golint)
    • file/replica.go
    • Line 3: warning: exported type Replica should have comment or be unexported (golint)
    • Line 8: warning: exported function NewReplica should have comment or be unexported (golint)
    • chunk/store/chunk.go
    • Line 11: warning: exported type ChunkID should have comment or be unexported (golint)
    • Line 12: warning: exported type ChunkPath should have comment or be unexported (golint)
    • Line 14: warning: exported type Chunk should have comment or be unexported (golint)
    • Line 33: warning: exported function NewChunk should have comment or be unexported (golint)
    • file/chunk.go
    • Line 3: warning: exported type Chunk should have comment or be unexported (golint)
    • Line 8: warning: exported function NewChunk should have comment or be unexported (golint)
    • chunk/store/store.go
    • Line 9: warning: exported type Store should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDiskStore should have comment or be unexported (golint)
    • file/kv/kv.go
    • Line 3: warning: exported type KV should have comment or be unexported (golint)
    • file/range.go
    • Line 5: warning: exported type RangeSystem should have comment or be unexported (golint)
    • Line 9: warning: exported function NewRangeSystem should have comment or be unexported (golint)
    • Line 15: warning: exported method RangeSystem.GetRange should have comment or be unexported (golint)
    • Line 24: warning: comment on exported method RangeSystem.CreateRange should be of the form "CreateRange ..." (golint)
    • Line 39: warning: exported type Range should have comment or be unexported (golint)
    • Line 46: warning: exported function NewRange 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!