Preparing report...

Report for github.com/prologic/bitcaskfs

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


golint25%

Golint is a linter for Go source code.

    • bitcaskfs/fs/server.go
    • Line 17: warning: exported type Server should have comment or be unexported (golint)
    • Line 25: warning: exported function MustMount should have comment or be unexported (golint)
    • Line 46: warning: exported method Server.ListenForUnmount should have comment or be unexported (golint)
    • bitcaskfs/config/config.go
    • Line 17: warning: exported var MountPoint should have comment or be unexported (golint)
    • Line 24: warning: comment on exported var Version should be of the form "Version ..." (golint)
    • Line 62: warning: exported function Execute should have comment or be unexported (golint)
    • bitcaskfs/fs/file.go
    • Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 93: warning: comment on exported method Node.Fsync should be of the form "Fsync ..." (golint)
    • Line 110: warning: comment on exported method Node.Setattr should be of the form "Setattr ..." (golint)
    • bitcaskfs/fs/folder.go
    • Line 36: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
    • Line 56: warning: comment on exported method Node.Readdir should be of the form "Readdir ..." (golint)
    • Line 151: warning: if block ends with a return statement, so drop this else and outdent its block (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!