Preparing report...

Report for github.com/opencoff/go-mph

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


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.


golint76%

Golint is a linter for Go source code.

    • go-mph/errors.go
    • Line 43: warning: comment on exported var ErrTooSmall should be of the form "ErrTooSmall ..." (golint)
    • go-mph/bbhash.go
    • Line 61: warning: comment on exported const MinParallelKeys should be of the form "MinParallelKeys ..." (golint)
    • go-mph/dbreader.go
    • Line 197: warning: comment on exported method DBReader.DumpMeta should be of the form "DumpMeta ..." (golint)
    • go-mph/dbwriter.go
    • Line 56: warning: don't use underscores in Go names; const _DB_KeysOnly should be _DBKeysOnly (golint)
    • Line 58: warning: don't use underscores in Go names; const _Magic_CHD should be _MagicCHD (golint)
    • Line 59: warning: don't use underscores in Go names; const _Magic_BBHash should be _MagicBBHash (golint)
    • Line 101: warning: comment on exported function NewChdDBWriter should be of the form "NewChdDBWriter ..." (golint)
    • Line 114: warning: exported function NewBBHashDBWriter should have comment or be unexported (golint)
    • Line 156: warning: comment on exported method DBWriter.Filename should be of the form "Filename ..." (golint)
    • Line 187: warning: comment on exported method DBWriter.Add should be of the form "Add ..." (golint)
    • Line 227: warning: don't use underscores in Go names; var pgsz_m1 should be pgszM1 (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!