Preparing report...

Report for github.com/prologic/shops

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


gocyclo92%

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.

    • shops/runner.go
    • Line 30: warning: cyclomatic complexity 25 of function (*Runner).Run() is high (> 15) (gocyclo)

golint38%

Golint is a linter for Go source code.

    • shops/utils.go
    • Line 16: warning: exported const DefaultUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type URI should have comment or be unexported (golint)
    • Line 26: warning: exported method URI.HostAddr should have comment or be unexported (golint)
    • Line 34: warning: exported function CurrentUser should have comment or be unexported (golint)
    • Line 42: warning: exported function ParseURI should have comment or be unexported (golint)
    • Line 78: warning: exported function ParseURIs should have comment or be unexported (golint)
    • Line 100: warning: exported function CopyFile should have comment or be unexported (golint)
    • Line 125: warning: exported function CopyDirectory should have comment or be unexported (golint)
    • Line 176: warning: exported function Exists should have comment or be unexported (golint)
    • Line 184: warning: exported function CreateIfNotExists should have comment or be unexported (golint)
    • Line 196: warning: exported function CopySymLink should have comment or be unexported (golint)
    • shops/config.go
    • Line 13: warning: exported type File should have comment or be unexported (golint)
    • Line 23: warning: exported type Item should have comment or be unexported (golint)
    • Line 34: warning: exported type Files should have comment or be unexported (golint)
    • Line 35: warning: exported type Funcs should have comment or be unexported (golint)
    • Line 36: warning: exported type Items should have comment or be unexported (golint)
    • Line 38: warning: exported type Config should have comment or be unexported (golint)
    • Line 50: warning: exported method Config.SetEnvVars should have comment or be unexported (golint)
    • Line 67: warning: exported method Config.Context should have comment or be unexported (golint)
    • shops/error.go
    • Line 3: warning: exported type ExitError should have comment or be unexported (golint)
    • shops/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 7: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 13: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: exported function WithContinueOnError should have comment or be unexported (golint)
    • shops/result.go
    • Line 8: warning: exported type FileResult should have comment or be unexported (golint)
    • Line 19: warning: exported method FileResult.Ok should have comment or be unexported (golint)
    • Line 35: warning: exported type ItemResult should have comment or be unexported (golint)
    • Line 49: warning: exported method ItemResult.Ok should have comment or be unexported (golint)
    • Line 72: warning: exported type TargetResult should have comment or be unexported (golint)
    • Line 84: warning: exported method TargetResult.Ok should have comment or be unexported (golint)
    • shops/runner.go
    • Line 12: warning: exported type Runner should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 30: warning: exported method Runner.Run should have comment or be unexported (golint)
    • shops/target.go
    • Line 11: warning: exported type Target should have comment or be unexported (golint)
    • Line 19: warning: exported type BaseTarget should have comment or be unexported (golint)
    • Line 24: warning: exported function NewBaseTarget should have comment or be unexported (golint)
    • Line 28: warning: exported method BaseTarget.Context should have comment or be unexported (golint)
    • Line 32: warning: exported type SSHTarget should have comment or be unexported (golint)
    • Line 42: warning: exported function NewSSHTarget should have comment or be unexported (golint)
    • Line 60: warning: exported method SSHTarget.Addr should have comment or be unexported (golint)
    • Line 64: warning: exported method SSHTarget.CopyFile should have comment or be unexported (golint)
    • Line 68: warning: exported method SSHTarget.CopyPath should have comment or be unexported (golint)
    • Line 72: warning: exported method SSHTarget.Check should have comment or be unexported (golint)
    • Line 95: warning: exported method SSHTarget.Action should have comment or be unexported (golint)
    • Line 118: warning: exported type LocalTarget should have comment or be unexported (golint)
    • Line 122: warning: exported function NewLocalTarget should have comment or be unexported (golint)
    • Line 128: warning: exported method LocalTarget.Addr should have comment or be unexported (golint)
    • Line 132: warning: exported method LocalTarget.CopyFile should have comment or be unexported (golint)
    • Line 137: warning: exported method LocalTarget.CopyPath should have comment or be unexported (golint)
    • Line 141: warning: exported method LocalTarget.Check should have comment or be unexported (golint)
    • Line 164: warning: exported method LocalTarget.Action should have comment or be unexported (golint)
    • shops/template.go
    • Line 31: warning: exported type Env should have comment or be unexported (golint)
    • Line 39: warning: exported type Context 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!


misspell92%

Misspell Finds commonly misspelled English words