Report for github.com/pivotal/go-ape

A+    Excellent!    Found 11 issues across 19 files

Tweet

gofmt89%

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!


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!


golint52%

Golint is a linter for Go source code.

    • go-ape/pkg/test_support/file_operations.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 26: warning: should not use dot imports (golint)
    • Line 29: warning: exported function CreateTempDir should have comment or be unexported (golint)
    • Line 35: warning: exported function CreateFile should have comment or be unexported (golint)
    • Line 39: warning: exported function CreateFileWithMode should have comment or be unexported (golint)
    • Line 59: warning: exported function CreateDir should have comment or be unexported (golint)
    • Line 63: warning: exported function CreateDirWithMode should have comment or be unexported (golint)
    • Line 76: warning: exported function SameFile should have comment or be unexported (golint)
    • Line 84: warning: exported function FileMode should have comment or be unexported (golint)
    • Line 90: warning: exported function FileExists should have comment or be unexported (golint)
    • Line 97: warning: exported type ErrorReporter should have comment or be unexported (golint)
    • Line 101: warning: exported function CleanupDirs should have comment or be unexported (golint)
    • Line 109: warning: exported function FileURL should have comment or be unexported (golint)
    • Line 118: warning: exported function AbsolutePath should have comment or be unexported (golint)
    • go-ape/pkg/test_support/http_server.go
    • Line 17: warning: don't use an underscore in package name (golint)
    • Line 25: warning: exported type HttpResponse should have comment or be unexported (golint)
    • Line 31: warning: exported function Serve should have comment or be unexported (golint)
    • Line 35: warning: exported function ServeSlow should have comment or be unexported (golint)
    • go-ape/pkg/filecopy/checker.go
    • Line 23: warning: exported const ErrFileNotFound should have comment or be unexported (golint)
    • Line 42: warning: exported function NewChecker should have comment or be unexported (golint)
    • go-ape/pkg/filecopy/copier.go
    • Line 29: warning: exported const ErrOpeningSourceDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: comment on exported function Copy should be of the form "Copy ..." (golint)
    • Line 79: warning: exported function NewCopier should have comment or be unexported (golint)
    • go-ape/pkg/furl/paths.go
    • Line 27: warning: exported function ResolveTilde should have comment or be unexported (golint)
    • Line 42: warning: exported function StartsWithCurrentUserDirectoryAsTilde should have comment or be unexported (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!