Preparing report...

Report for github.com/openacid/low

A+    Excellent!    Found 11 issues across 103 files

Tweet

gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo99%

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.

    • low/size/sizeof.go
    • Line 138: warning: cyclomatic complexity 21 of function sizeof() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 18 of function stat() is high (> 15) (gocyclo)

golint92%

Golint is a linter for Go source code.

    • low/sigbits/firstdiff.go
    • Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • low/sigbits/sharding_test.go
    • Line 38: warning: don't use underscores in Go names; var keysAbe_Abo should be keysAbeAbo (golint)
    • Line 67: warning: don't use underscores in Go names; var keysAaron_Abuta should be keysAaronAbuta (golint)
    • low/mathext/util/util.go
    • Line 6: warning: exported function MinI should have comment or be unexported (golint)
    • Line 9: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 14: warning: exported function MaxI should have comment or be unexported (golint)
    • Line 17: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 22: warning: exported function MinI8 should have comment or be unexported (golint)
    • Line 25: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 30: warning: exported function MaxI8 should have comment or be unexported (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: exported function MinI16 should have comment or be unexported (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported function MaxI16 should have comment or be unexported (golint)
    • Line 49: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 54: warning: exported function MinI32 should have comment or be unexported (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 62: warning: exported function MaxI32 should have comment or be unexported (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 70: warning: exported function MinI64 should have comment or be unexported (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 78: warning: exported function MaxI64 should have comment or be unexported (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 88: warning: exported function MinU should have comment or be unexported (golint)
    • Line 91: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 96: warning: exported function MaxU should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 104: warning: exported function MinU8 should have comment or be unexported (golint)
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 112: warning: exported function MaxU8 should have comment or be unexported (golint)
    • Line 115: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 120: warning: exported function MinU16 should have comment or be unexported (golint)
    • Line 123: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 128: warning: exported function MaxU16 should have comment or be unexported (golint)
    • Line 131: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 136: warning: exported function MinU32 should have comment or be unexported (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 144: warning: exported function MaxU32 should have comment or be unexported (golint)
    • Line 147: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 152: warning: exported function MinU64 should have comment or be unexported (golint)
    • Line 155: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 160: warning: exported function MaxU64 should have comment or be unexported (golint)
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 170: warning: exported function ClapI should have comment or be unexported (golint)
    • Line 180: warning: exported function ClapI8 should have comment or be unexported (golint)
    • Line 190: warning: exported function ClapI16 should have comment or be unexported (golint)
    • Line 200: warning: exported function ClapI32 should have comment or be unexported (golint)
    • Line 210: warning: exported function ClapI64 should have comment or be unexported (golint)
    • Line 220: warning: exported function ClapU should have comment or be unexported (golint)
    • Line 230: warning: exported function ClapU8 should have comment or be unexported (golint)
    • Line 240: warning: exported function ClapU16 should have comment or be unexported (golint)
    • Line 250: warning: exported function ClapU32 should have comment or be unexported (golint)
    • Line 260: warning: exported function ClapU64 should have comment or be unexported (golint)
    • low/bitmap/fmt.go
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • low/bitmap/tailbitmap_test.go
    • Line 46: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 115: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 228: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words

    • low/mathext/zipf/zipf.go
    • Line 15: warning: "usefull" is a misspelling of "useful" (misspell)
    • Line 79: warning: "equivilent" is a misspelling of "equivalent" (misspell)
    • Line 105: warning: "Finaly" is a misspelling of "Finally" (misspell)