Preparing report...

Report for github.com/die-net/deployer

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


golint20%

Golint is a linter for Go source code.

    • deployer/auth.go
    • Line 13: warning: exported var ErrCfgNotFound should have comment or be unexported (golint)
    • Line 22: warning: exported function AuthFromDockerCfg should have comment or be unexported (golint)
    • deployer/container.go
    • Line 13: warning: exported var IsID should have comment or be unexported (golint)
    • Line 19: warning: exported method Deployer.FindContainers should have comment or be unexported (golint)
    • Line 35: warning: exported method Deployer.InspectContainer should have comment or be unexported (golint)
    • Line 39: warning: exported method Deployer.StopContainers should have comment or be unexported (golint)
    • Line 62: warning: exported method Deployer.FindStaleContainers should have comment or be unexported (golint)
    • Line 84: warning: exported method Deployer.StopStaleContainers should have comment or be unexported (golint)
    • deployer/deployer.go
    • Line 10: warning: exported type Deployer should have comment or be unexported (golint)
    • Line 20: warning: exported function NewDeployer should have comment or be unexported (golint)
    • deployer/docker_hub.go
    • Line 11: warning: exported method Deployer.RegisterDockerHubWebhook should have comment or be unexported (golint)
    • Line 17: warning: exported type DockerHubWebhook should have comment or be unexported (golint)
    • Line 25: warning: exported type DockerHubCallback should have comment or be unexported (golint)
    • Line 32: warning: exported method Deployer.DockerHubWebhookHandler should have comment or be unexported (golint)
    • Line 69: warning: exported method Deployer.DockerHubDoCallback should have comment or be unexported (golint)
    • deployer/etcd-watch.go
    • Line 13: warning: exported type Watch should have comment or be unexported (golint)
    • Line 21: warning: exported function NewWatch should have comment or be unexported (golint)
    • deployer/image.go
    • Line 48: warning: exported method Deployer.ListRepotags should have comment or be unexported (golint)
    • Line 82: warning: exported method Deployer.ImageUpdateRepo should have comment or be unexported (golint)
    • Line 91: warning: exported method Deployer.PullImages should have comment or be unexported (golint)
    • Line 101: warning: exported method Deployer.PullImage should have comment or be unexported (golint)
    • deployer/slack.go
    • Line 12: warning: exported type SlackPayload should have comment or be unexported (golint)
    • Line 21: warning: exported type SlackClient should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign70%

IneffAssign detects ineffectual assignments in Go code.

    • deployer/deployer.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/coreos/go-etcd/etcd (invalid package name: "") (ineffassign)
    • deployer/auth.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/fsouza/go-dockerclient (invalid package name: "") (ineffassign)

misspell90%

Misspell Finds commonly misspelled English words