Preparing report...

Report for github.com/duffn/go-alertlogic

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


golint56%

Golint is a linter for Go source code.

    • go-alertlogic/alertlogic/aims_accounts.go
    • Line 10: warning: comment on exported type AccountDetails should be of the form "AccountDetails ..." (with optional leading article) (golint)
    • Line 27: warning: exported const BillsTo should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type UpdateAccountDetailsRequest should have comment or be unexported (golint)
    • go-alertlogic/alertlogic/aims_roles.go
    • Line 10: warning: exported type RolesList should have comment or be unexported (golint)
    • Line 14: warning: exported type Role should have comment or be unexported (golint)
    • Line 26: warning: exported type Permission should have comment or be unexported (golint)
    • Line 29: warning: exported const Allowed should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported method API.GetGlobalRoleDetails should be of the form "GetGlobalRoleDetails ..." (golint)
    • go-alertlogic/alertlogic/aims_users.go
    • Line 66: warning: exported type AccessKey should have comment or be unexported (golint)
    • Line 96: warning: comment on exported type UserList should be of the form "UserList ..." (with optional leading article) (golint)
    • Line 198: warning: comment on exported method API.ListUsers should be of the form "ListUsers ..." (golint)
    • go-alertlogic/alertlogic/assets_query.go
    • Line 10: warning: exported type ExternalDNSNameAssets should have comment or be unexported (golint)
    • Line 15: warning: exported type ExternalDNSNameAsset should have comment or be unexported (golint)
    • Line 42: warning: exported type Tag should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method API.GetExternalDNSNameAssets should be of the form "GetExternalDNSNameAssets ..." (golint)
    • go-alertlogic/alertlogic/deployments.go
    • Line 10: warning: exported type Deployment should have comment or be unexported (golint)
    • Line 28: warning: exported type CloudDefender should have comment or be unexported (golint)
    • Line 33: warning: exported type Credential should have comment or be unexported (golint)
    • Line 39: warning: exported type Platform should have comment or be unexported (golint)
    • Line 46: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 51: warning: exported type Scope should have comment or be unexported (golint)
    • Line 56: warning: exported type Exclude should have comment or be unexported (golint)
    • Line 61: warning: exported type Include should have comment or be unexported (golint)
    • Line 67: warning: exported type Policy should have comment or be unexported (golint)
    • Line 71: warning: exported type Status 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!