Preparing report...

Report for github.com/linode/linodego

A+    Excellent!    Found 20 issues across 112 files

Tweet

gofmt97%

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!


golint87%

Golint is a linter for Go source code.

    • linodego/k8s/clientset.go
    • Line 13: warning: comment on exported function BuildClientsetFromConfig should be of the form "BuildClientsetFromConfig ..." (golint)
    • linodego/object_storage_object.go
    • Line 9: warning: exported type ObjectStorageObjectURLCreateOptions should have comment or be unexported (golint)
    • Line 17: warning: exported type ObjectStorageObjectURL should have comment or be unexported (golint)
    • Line 22: warning: exported type ObjectStorageObjectACLConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type ObjectStorageObjectACLConfigUpdateOptions should have comment or be unexported (golint)
    • Line 32: warning: exported method Client.CreateObjectStorageObjectURL should have comment or be unexported (golint)
    • Line 52: warning: exported method Client.GetObjectStorageObjectACLConfig should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.UpdateObjectStorageObjectACLConfig should have comment or be unexported (golint)
    • linodego/client.go
    • Line 33: warning: comment on exported const APIRetryMaxWaitTime should be of the form "APIRetryMaxWaitTime ..." (golint)
    • linodego/retries.go
    • Line 14: warning: comment on exported type RetryConditional should be of the form "RetryConditional ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type RetryAfter should be of the form "RetryAfter ..." (with optional leading article) (golint)
    • linodego/account_user_grants.go
    • Line 8: warning: exported type GrantPermissionLevel should have comment or be unexported (golint)
    • Line 11: warning: exported const AccessLevelReadOnly should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type GlobalUserGrants should have comment or be unexported (golint)
    • Line 28: warning: exported type EntityUserGrant should have comment or be unexported (golint)
    • Line 33: warning: exported type GrantedEntity should have comment or be unexported (golint)
    • Line 39: warning: exported type UserGrants should have comment or be unexported (golint)
    • Line 51: warning: exported type UserGrantsUpdateOptions should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetUserGrants should have comment or be unexported (golint)
    • Line 77: warning: exported method Client.UpdateUserGrants should have comment or be unexported (golint)

gocyclo96%

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.

    • linodego/pagination.go
    • Line 58: warning: cyclomatic complexity 74 of function (*Client).listHelper() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 31 of function (*Client).listHelperWithID() is high (> 15) (gocyclo)

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!