Preparing report...

Report for github.com/jojomi/go-script

A+    Excellent!    Found 6 issues across 25 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!


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!


golint80%

Golint is a linter for Go source code.

    • go-script/environment.go
    • Line 13: warning: exported method Context.GetCustomEnvValue should have comment or be unexported (golint)
    • Line 17: warning: exported method Context.GetCustomEnv should have comment or be unexported (golint)
    • Line 25: warning: exported method Context.GetFullEnv should have comment or be unexported (golint)
    • go-script/file.go
    • Line 10: warning: exported method Context.ReplaceInFile should have comment or be unexported (golint)
    • go-script/shutil.go
    • Line 1: warning: package comment should be of the form "Package script ..." (golint)
    • Line 13: warning: exported type SameFileError should have comment or be unexported (golint)
    • Line 22: warning: exported type SpecialFileError should have comment or be unexported (golint)
    • Line 31: warning: exported type NotADirectoryError should have comment or be unexported (golint)
    • Line 39: warning: exported type AlreadyExistsError should have comment or be unexported (golint)
    • Line 161: warning: exported type CopyTreeOptions should have comment or be unexported (golint)
    • Line 166: warning: comment on exported function CopyTree should be of the form "CopyTree ..." (golint)
    • go-script/command.go
    • Line 7: warning: exported type Command should have comment or be unexported (golint)
    • Line 15: warning: exported type LocalCommand should have comment or be unexported (golint)
    • Line 19: warning: exported function NewLocalCommand should have comment or be unexported (golint)
    • Line 24: warning: exported function LocalCommandFrom should have comment or be unexported (golint)
    • Line 32: warning: exported method LocalCommand.AddAll should have comment or be unexported (golint)
    • Line 38: warning: exported method LocalCommand.Add should have comment or be unexported (golint)
    • Line 45: warning: exported method LocalCommand.Binary should have comment or be unexported (golint)
    • Line 52: warning: exported method LocalCommand.Args should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!