Preparing report...

Report for github.com/gobuffalo/packr

A+    Excellent!    Found 27 issues across 109 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!


gocyclo97%

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.


golint76%

Golint is a linter for Go source code.

    • packr/v2/jam/parser/visitor.go
    • Line 14: warning: exported type Visitor should have comment or be unexported (golint)
    • Line 21: warning: exported function NewVisitor should have comment or be unexported (golint)
    • Line 29: warning: exported method Visitor.Run should have comment or be unexported (golint)
    • Line 57: warning: exported method Visitor.Visit should have comment or be unexported (golint)
    • packr/v2/file/resolver/disk.go
    • Line 17: warning: exported type Disk should have comment or be unexported (golint)
    • Line 25: warning: exported method Disk.Resolve should have comment or be unexported (golint)
    • Line 76: warning: exported method Disk.FileMap should have comment or be unexported (golint)
    • packr/v2/file/resolver/hex_gzip.go
    • Line 20: warning: exported type HexGzip should have comment or be unexported (golint)
    • Line 32: warning: exported method HexGzip.FileMap should have comment or be unexported (golint)
    • Line 48: warning: exported method HexGzip.Resolve should have comment or be unexported (golint)
    • Line 74: warning: exported function NewHexGzip should have comment or be unexported (golint)
    • Line 88: warning: exported function HexGzipString should have comment or be unexported (golint)
    • Line 98: warning: exported function UnHexGzipString should have comment or be unexported (golint)
    • packr/box.go
    • Line 82: warning: comment on exported method Box.MustString should be of the form "MustString ..." (golint)
    • Line 87: warning: comment on exported method Box.Bytes should be of the form "Bytes ..." (golint)
    • Line 93: warning: comment on exported method Box.MustBytes should be of the form "MustBytes ..." (golint)
    • packr/walk.go
    • Line 11: warning: exported type WalkFunc should have comment or be unexported (golint)
    • packr/v2/jam/parser/prospect.go
    • Line 12: warning: exported var DefaultIgnoredFolders should have comment or be unexported (golint)
    • Line 14: warning: exported function IsProspect should have comment or be unexported (golint)
    • packr/v2/file/resolver/in_memory.go
    • Line 13: warning: exported type InMemory should have comment or be unexported (golint)
    • Line 21: warning: exported method InMemory.Resolve should have comment or be unexported (golint)
    • Line 29: warning: exported method InMemory.Pack should have comment or be unexported (golint)
    • Line 39: warning: exported method InMemory.FileMap should have comment or be unexported (golint)
    • Line 48: warning: exported function NewInMemory should have comment or be unexported (golint)
    • packr/v2/jam/store/fn.go
    • Line 11: warning: exported type FnStore should have comment or be unexported (golint)
    • Line 18: warning: exported method FnStore.FileNames should have comment or be unexported (golint)
    • Line 25: warning: exported method FnStore.Files should have comment or be unexported (golint)
    • Line 32: warning: exported method FnStore.Pack should have comment or be unexported (golint)
    • Line 39: warning: exported method FnStore.Clean should have comment or be unexported (golint)
    • packr/v2/jam/store/legacy.go
    • Line 18: warning: exported type Legacy should have comment or be unexported (golint)
    • Line 23: warning: exported function NewLegacy should have comment or be unexported (golint)
    • Line 30: warning: exported method Legacy.Pack should have comment or be unexported (golint)
    • packr/v2/jam/store/disk.go
    • Line 33: warning: exported const DISK_GLOBAL_KEY should have comment or be unexported (golint)
    • Line 35: warning: exported type Disk should have comment or be unexported (golint)
    • Line 43: warning: exported function NewDisk should have comment or be unexported (golint)
    • Line 62: warning: exported method Disk.FileNames should have comment or be unexported (golint)
    • Line 84: warning: exported method Disk.Files should have comment or be unexported (golint)
    • Line 101: warning: exported method Disk.Pack should have comment or be unexported (golint)
    • Line 120: warning: exported method Disk.Clean should have comment or be unexported (golint)
    • packr/v2/file/resolver/resolver.go
    • Line 11: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 22: warning: exported var DefaultResolver should have comment or be unexported (golint)
    • Line 24: warning: exported function String should have comment or be unexported (golint)
    • packr/builder/builder.go
    • Line 15: warning: exported var DebugLog should have comment or be unexported (golint)
    • Line 56: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • packr/file.go
    • Line 5: warning: exported type File should have comment or be unexported (golint)
    • packr/v2/plog/plog.go
    • Line 11: warning: exported var Logger should have comment or be unexported (golint)
    • Line 13: warning: exported function Debug should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!