Preparing report...

Report for github.com/jteeuwen/go-bindata

A    Great!    Found 10 issues across 14 files

Tweet

gofmt85%

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!


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.

    • go-bindata/convert.go
    • Line 122: warning: cyclomatic complexity 21 of function findFiles() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 19 of function Translate() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • go-bindata/convert.go
    • Line 112: warning: comment on exported type ByName should be of the form "ByName ..." (with optional leading article) (golint)
    • go-bindata/toc.go
    • Line 34: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • Line 47: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 55: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • Line 64: warning: should omit 2nd value from range; this loop is equivalent to `for filename := range ...` (golint)
    • Line 85: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • go-bindata/go-bindata/version.go
    • Line 13: warning: exported const AppName should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported var AppVersionRev should be of the form "AppVersionRev ..." (golint)
    • Line 24: warning: exported function Version should have comment or be unexported (golint)
    • go-bindata/release.go
    • Line 100: warning: don't use underscores in Go names; func header_compressed_nomemcopy should be headerCompressedNomemcopy (golint)
    • Line 137: warning: don't use underscores in Go names; func header_compressed_memcopy should be headerCompressedMemcopy (golint)
    • Line 174: warning: don't use underscores in Go names; func header_uncompressed_nomemcopy should be headerUncompressedNomemcopy (golint)
    • Line 201: warning: don't use underscores in Go names; func header_uncompressed_memcopy should be headerUncompressedMemcopy (golint)
    • Line 214: warning: don't use underscores in Go names; func header_release_common should be headerReleaseCommon (golint)
    • Line 250: warning: don't use underscores in Go names; func compressed_nomemcopy should be compressedNomemcopy (golint)
    • Line 277: warning: don't use underscores in Go names; func compressed_memcopy should be compressedMemcopy (golint)
    • Line 304: warning: don't use underscores in Go names; func uncompressed_nomemcopy should be uncompressedNomemcopy (golint)
    • Line 328: warning: don't use underscores in Go names; func uncompressed_memcopy should be uncompressedMemcopy (golint)
    • Line 354: warning: don't use underscores in Go names; func asset_release_common should be assetReleaseCommon (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!


misspell92%

Misspell Finds commonly misspelled English words

    • go-bindata/doc.go
    • Line 6: warning: "managable" is a misspelling of "manageable" (misspell)
    • Line 100: warning: "desireable" is a misspelling of "desirable" (misspell)