Preparing report...

Report for github.com/CloudCoreo/cli

A+    Excellent!    Found 12 issues across 86 files

Tweet

gofmt95%

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!


gocyclo98%

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.


golint93%

Golint is a linter for Go source code.

    • cli/pkg/coreo/client.go
    • Line 93: warning: exported method Client.UpdateCloudAccount should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.ReValidateRole should have comment or be unexported (golint)
    • Line 148: warning: exported method Client.GetEventRemoveConfig should have comment or be unexported (golint)
    • Line 158: warning: exported method Client.GetRoleCreationInfo should have comment or be unexported (golint)
    • cli/cmd/util/flags.go
    • Line 24: warning: exported const ProviderAWS should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: comment on exported function CheckCloudAddFlagsForAWS should be of the form "CheckCloudAddFlagsForAWS ..." (golint)
    • Line 79: warning: comment on exported function CheckCloudAddFlagsForAzure should be of the form "CheckCloudAddFlagsForAzure ..." (golint)
    • Line 128: warning: exported function CheckProviderFlag should have comment or be unexported (golint)
    • cli/cmd/content/cloud.go
    • Line 195: warning: comment on exported const CmdFLagDeleteRoleDescription should be of the form "CmdFLagDeleteRoleDescription ..." (golint)
    • Line 219: warning: comment on exported const CmdFlagSubscriptionIDDescription should be of the form "CmdFlagSubscriptionIDDescription ..." (golint)
    • Line 222: warning: exported const CmdFlagTags should have comment (or a comment on this block) or be unexported (golint)
    • cli/cmd/content/event.go
    • Line 43: warning: exported const CmdEventAuthFile should have comment or be unexported (golint)
    • Line 45: warning: exported const CmdEventAuthFileDescription should have comment or be unexported (golint)
    • Line 47: warning: exported const CmdEventRegion should have comment or be unexported (golint)
    • Line 49: warning: exported const CmdEventRegionDescription should have comment or be unexported (golint)
    • cli/cmd/content/team.go
    • Line 54: warning: exported const ErrorProviderNotSupported should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!