Preparing report...

Report for github.com/go-bindata/bindata

A+    Excellent!    Found 9 issues across 16 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!


gocyclo93%

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.

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

golint50%

Golint is a linter for Go source code.

    • 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 89: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • Line 131: warning: receiver name root should be consistent with previous receiver name node for assetTree (golint)
    • 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)
    • bindata/doc.go
    • Line 5: warning: package comment should be of the form "Package bindata ..." (golint)
    • bindata/release.go
    • Line 105: warning: don't use underscores in Go names; func header_compressed_nomemcopy should be headerCompressedNomemcopy (golint)
    • Line 160: warning: don't use underscores in Go names; func header_compressed_memcopy should be headerCompressedMemcopy (golint)
    • Line 215: warning: don't use underscores in Go names; func header_uncompressed_nomemcopy should be headerUncompressedNomemcopy (golint)
    • Line 260: warning: don't use underscores in Go names; func header_uncompressed_memcopy should be headerUncompressedMemcopy (golint)
    • Line 289: warning: don't use underscores in Go names; func header_release_common should be headerReleaseCommon (golint)
    • Line 336: warning: don't use underscores in Go names; func compressed_nomemcopy should be compressedNomemcopy (golint)
    • Line 363: warning: don't use underscores in Go names; func compressed_memcopy should be compressedMemcopy (golint)
    • Line 390: warning: don't use underscores in Go names; func uncompressed_nomemcopy should be uncompressedNomemcopy (golint)
    • Line 414: warning: don't use underscores in Go names; func uncompressed_memcopy should be uncompressedMemcopy (golint)
    • Line 440: 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!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • bindata/toc.go
    • Line 59: warning: ineffectual assignment to substart (ineffassign)
    • Line 60: warning: ineffectual assignment to subend (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!