Preparing report...

Report for github.com/openacid/slim

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


golint85%

Golint is a linter for Go source code.

    • slim/benchhelper/plot.go
    • Line 11: warning: exported var Fformat should have comment or be unexported (golint)
    • Line 64: warning: exported var LineStyles should have comment or be unexported (golint)
    • Line 130: warning: exported var Plot should have comment or be unexported (golint)
    • Line 145: warning: comment on exported function Fplot should be of the form "Fplot ..." (golint)
    • slim/benchhelper/report.go
    • Line 7: warning: exported type ReportCmdFlag should have comment or be unexported (golint)
    • Line 14: warning: exported function InitCmdFlag should have comment or be unexported (golint)
    • slim/trie/slimtrie_stat.go
    • Line 3: warning: exported type Stat should have comment or be unexported (golint)
    • Line 12: warning: comment on exported method SlimTrie.Stat should be of the form "Stat ..." (golint)
    • Line 35: warning: don't use underscores in Go names; var level_cnt should be levelCnt (golint)
    • slim/array/array.go
    • Line 84: warning: exported const ArrayFlagIsBitmap should have comment (or a comment on this block) or be unexported (golint)
    • slim/trie/slimtrie.go
    • Line 143: warning: exported function Bool should have comment or be unexported (golint)
    • Line 164: warning: exported method Slim.GetVersion should have comment or be unexported (golint)
    • Line 168: warning: exported method SlimTrie.GetVersion should have comment or be unexported (golint)
    • slim/trie/slimtrie_query.go
    • Line 192: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 198: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 527: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • slim/trie/benchmark/benchmark.go
    • Line 63: warning: exported var Rec should have comment or be unexported (golint)
    • Line 136: warning: exported function Mem should have comment or be unexported (golint)
    • Line 196: warning: exported function GetMapSlimArrayBtree should have comment or be unexported (golint)
    • Line 218: warning: exported var OutputMSAB should have comment or be unexported (golint)
    • Line 220: warning: don't use underscores in Go names; func benchGet_map_slim_array_btree should be benchGetMapSlimArrayBtree (golint)
    • Line 296: warning: exported function NewGetSetting should have comment or be unexported (golint)
    • slim/benchhelper/benchhelper.go
    • Line 27: warning: exported function NewBytesSlices should have comment or be unexported (golint)
    • Line 37: warning: exported function RandI32SliceBetween should have comment or be unexported (golint)
    • Line 51: warning: exported function RandSortedStrings should have comment or be unexported (golint)
    • Line 75: warning: exported function RandByteSlices should have comment or be unexported (golint)
    • Line 85: warning: exported function RandString should have comment or be unexported (golint)
    • Line 91: warning: exported function RandBytes should have comment or be unexported (golint)
    • Line 117: warning: exported function NewMDFileTable should have comment or be unexported (golint)
    • Line 128: warning: exported function NewDataFileTable should have comment or be unexported (golint)

gocyclo96%

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.


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!