Preparing report...

Report for github.com/rakyll/magicmime

A    Great!    Found 3 issues across 3 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!


golint66%

Golint is a linter for Go source code.

    • magicmime/magicmime.go
    • Line 48: warning: exported type Flag should have comment or be unexported (golint)
    • Line 51: warning: comment on exported const MAGIC_NONE should be of the form "MAGIC_NONE ..." (golint)
    • Line 54: warning: comment on exported const MAGIC_DEBUG should be of the form "MAGIC_DEBUG ..." (golint)
    • Line 57: warning: comment on exported const MAGIC_SYMLINK should be of the form "MAGIC_SYMLINK ..." (golint)
    • Line 60: warning: comment on exported const MAGIC_COMPRESS should be of the form "MAGIC_COMPRESS ..." (golint)
    • Line 63: warning: comment on exported const MAGIC_DEVICES should be of the form "MAGIC_DEVICES ..." (golint)
    • Line 67: warning: comment on exported const MAGIC_MIME_TYPE should be of the form "MAGIC_MIME_TYPE ..." (golint)
    • Line 70: warning: comment on exported const MAGIC_MIME_ENCODING should be of the form "MAGIC_MIME_ENCODING ..." (golint)
    • Line 73: warning: comment on exported const MAGIC_MIME should be of the form "MAGIC_MIME ..." (golint)
    • Line 76: warning: comment on exported const MAGIC_CONTINUE should be of the form "MAGIC_CONTINUE ..." (golint)
    • Line 79: warning: comment on exported const MAGIC_CHECK should be of the form "MAGIC_CHECK ..." (golint)
    • Line 82: warning: comment on exported const MAGIC_PRESERVE_ATIME should be of the form "MAGIC_PRESERVE_ATIME ..." (golint)
    • Line 86: warning: comment on exported const MAGIC_RAW should be of the form "MAGIC_RAW ..." (golint)
    • Line 89: warning: comment on exported const MAGIC_ERROR should be of the form "MAGIC_ERROR ..." (golint)
    • Line 93: warning: comment on exported const MAGIC_APPLE should be of the form "MAGIC_APPLE ..." (golint)
    • Line 96: warning: comment on exported const MAGIC_NO_CHECK_APPTYPE should be of the form "MAGIC_NO_CHECK_APPTYPE ..." (golint)
    • Line 99: warning: comment on exported const MAGIC_NO_CHECK_CDF should be of the form "MAGIC_NO_CHECK_CDF ..." (golint)
    • Line 102: warning: comment on exported const MAGIC_NO_CHECK_COMPRESS should be of the form "MAGIC_NO_CHECK_COMPRESS ..." (golint)
    • Line 105: warning: comment on exported const MAGIC_NO_CHECK_ELF should be of the form "MAGIC_NO_CHECK_ELF ..." (golint)
    • Line 108: warning: comment on exported const MAGIC_NO_CHECK_ENCODING should be of the form "MAGIC_NO_CHECK_ENCODING ..." (golint)
    • Line 111: warning: comment on exported const MAGIC_NO_CHECK_SOFT should be of the form "MAGIC_NO_CHECK_SOFT ..." (golint)
    • Line 114: warning: comment on exported const MAGIC_NO_CHECK_TAR should be of the form "MAGIC_NO_CHECK_TAR ..." (golint)
    • Line 117: warning: comment on exported const MAGIC_NO_CHECK_TEXT should be of the form "MAGIC_NO_CHECK_TEXT ..." (golint)
    • Line 120: warning: comment on exported const MAGIC_NO_CHECK_TOKENS should be of the form "MAGIC_NO_CHECK_TOKENS ..." (golint)

gocyclo100%

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.

No problems detected. Good job!


license0%

Checks whether your project has a LICENSE file.


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.


misspell66%

Misspell Finds commonly misspelled English words