Preparing report...

Report for github.com/sp0x/docker-hub-cli

A+    Excellent!    Found 12 issues across 20 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!


golint45%

Golint is a linter for Go source code.

    • docker-hub-cli/api/builds.go
    • Line 9: warning: exported type BuildSource should have comment or be unexported (golint)
    • Line 23: warning: exported method BuildSource.GetSourceUrl should have comment or be unexported (golint)
    • docker-hub-cli/api/user.go
    • Line 9: warning: exported type User should have comment or be unexported (golint)
    • Line 15: warning: comment on exported method DockerApi.Login should be of the form "Login ..." (golint)
    • Line 42: warning: exported method DockerApi.GetMyUser should have comment or be unexported (golint)
    • docker-hub-cli/api/helpers.go
    • Line 11: warning: exported type Pair should have comment or be unexported (golint)
    • Line 15: warning: exported type PairList should have comment or be unexported (golint)
    • Line 21: warning: exported type NamedLink should have comment or be unexported (golint)
    • docker-hub-cli/api/repository.go
    • Line 14: warning: exported type UserRepository should have comment or be unexported (golint)
    • Line 19: warning: exported type RepositoryPermissions should have comment or be unexported (golint)
    • Line 25: warning: exported type Repository should have comment or be unexported (golint)
    • Line 86: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • docker-hub-cli/api/tag.go
    • Line 8: warning: exported type Tag should have comment or be unexported (golint)
    • Line 23: warning: exported type TaggedImage should have comment or be unexported (golint)
    • Line 40: warning: exported type TagList should have comment or be unexported (golint)
    • docker-hub-cli/cmd/config.go
    • Line 17: warning: exported type AuthConfiguration should have comment or be unexported (golint)
    • Line 22: warning: exported method AuthConfiguration.IsValid should have comment or be unexported (golint)
    • Line 44: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • docker-hub-cli/requests/requests.go
    • Line 24: warning: exported function Post should have comment or be unexported (golint)
    • Line 50: warning: exported function Put should have comment or be unexported (golint)
    • Line 76: warning: exported function Patch should have comment or be unexported (golint)
    • Line 102: warning: exported function Get should have comment or be unexported (golint)
    • Line 123: warning: exported function GetWithHeaders should have comment or be unexported (golint)
    • Line 144: warning: exported function Delete should have comment or be unexported (golint)
    • docker-hub-cli/api/docker.go
    • Line 14: warning: exported function NewDockerhubClient should have comment or be unexported (golint)
    • Line 25: warning: exported function NewApi should have comment or be unexported (golint)
    • Line 43: warning: exported type DockerApi should have comment or be unexported (golint)
    • Line 60: warning: exported method DockerApi.SetRepositoryDescription should have comment or be unexported (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 88: warning: exported method DockerApi.SetRepositoryPrivacy should have comment or be unexported (golint)
    • Line 244: warning: exported method DockerApi.SaveBuildTag should have comment or be unexported (golint)
    • Line 351: warning: exported method DockerApi.GetBuildSource should have comment or be unexported (golint)
    • Line 381: warning: comment on exported method DockerApi.GetRepository should be of the form "GetRepository ..." (golint)
    • Line 512: warning: exported method DockerApi.CreateOwnRepository should have comment or be unexported (golint)
    • Line 540: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 615: warning: exported method DockerApi.DeleteOwnRepository should have comment or be unexported (golint)
    • Line 677: warning: comment on exported method DockerApi.TriggerBuild should be of the form "TriggerBuild ..." (golint)
    • Line 701: warning: comment on exported method DockerApi.StarRepository should be of the form "StarRepository ..." (golint)
    • Line 720: warning: comment on exported method DockerApi.UnstarRepository should be of the form "UnstarRepository ..." (golint)
    • Line 778: warning: exported method DockerApi.GetUsername should have comment or be unexported (golint)
    • Line 782: warning: exported method DockerApi.GetToken should have comment or be unexported (golint)
    • Line 786: warning: exported method DockerApi.IsAuthenticated should have comment or be unexported (golint)
    • docker-hub-cli/api/webhooks.go
    • Line 11: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 24: warning: exported type WebhookUrl should have comment or be unexported (golint)
    • Line 29: warning: exported method Webhook.GetWebhookUrl should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 135: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!