Preparing report...

Report for github.com/pgaskin/dictutil

A+    Excellent!    Found 18 issues across 36 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!


gocyclo58%

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.


golint80%

Golint is a linter for Go source code.

    • dictutil/examples/dictzip-decompile/parse.go
    • Line 208: 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 214: 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)
    • dictutil/marisa/marisa.go
    • Line 21: warning: exported function ReadAll should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; var out_wd should be outWd (golint)
    • Line 24: warning: don't use underscores in Go names; var out_wd_sz should be outWdSz (golint)
    • Line 34: warning: exported function WriteAll should have comment or be unexported (golint)
    • Line 36: warning: don't use underscores in Go names; var wd_ptr should be wdPtr (golint)
    • Line 36: warning: don't use underscores in Go names; var wd_sz should be wdSz (golint)
    • Line 36: warning: don't use underscores in Go names; var wd_free should be wdFree (golint)
    • dictutil/marisa/shim.go
    • Line 68: warning: don't use underscores in Go names; func parameter out_err should be outErr (golint)
    • Line 92: warning: don't use underscores in Go names; func parameter buf_n should be bufN (golint)
    • Line 92: warning: don't use underscores in Go names; func parameter out_err should be outErr (golint)
    • Line 115: warning: don't use underscores in Go names; func parameter buf_n should be bufN (golint)
    • Line 115: warning: don't use underscores in Go names; func parameter out_err should be outErr (golint)
    • dictutil/kobodict/crypt.go
    • Line 37: 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)
    • dictutil/cmd/dictutil/install.go
    • Line 403: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 422: 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)
    • dictutil/cmd/dictutil/uninstall.go
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 137: 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 145: 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)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!