Preparing report...

Report for github.com/aliyun/credentials-go

A+    Excellent!    Found 11 issues across 37 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint81%

Golint is a linter for Go source code.

    • credentials-go/credentials/credential.go
    • Line 60: warning: exported method Config.GoString should have comment or be unexported (golint)
    • Line 64: warning: exported method Config.SetAccessKeyId should have comment or be unexported (golint)
    • Line 69: warning: exported method Config.SetAccessKeySecret should have comment or be unexported (golint)
    • Line 74: warning: exported method Config.SetSecurityToken should have comment or be unexported (golint)
    • Line 79: warning: exported method Config.SetRoleArn should have comment or be unexported (golint)
    • Line 84: warning: exported method Config.SetRoleSessionName should have comment or be unexported (golint)
    • Line 89: warning: exported method Config.SetPublicKeyId should have comment or be unexported (golint)
    • Line 94: warning: exported method Config.SetRoleName should have comment or be unexported (golint)
    • Line 99: warning: exported method Config.SetSessionExpiration should have comment or be unexported (golint)
    • Line 104: warning: exported method Config.SetPrivateKeyFile should have comment or be unexported (golint)
    • Line 109: warning: exported method Config.SetBearerToken should have comment or be unexported (golint)
    • Line 114: warning: exported method Config.SetRoleSessionExpiration should have comment or be unexported (golint)
    • Line 119: warning: exported method Config.SetPolicy should have comment or be unexported (golint)
    • Line 124: warning: exported method Config.SetHost should have comment or be unexported (golint)
    • Line 129: warning: exported method Config.SetTimeout should have comment or be unexported (golint)
    • Line 134: warning: exported method Config.SetConnectTimeout should have comment or be unexported (golint)
    • Line 139: warning: exported method Config.SetProxy should have comment or be unexported (golint)
    • Line 144: warning: exported method Config.SetType should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!