Preparing report...

Report for github.com/gp42/aws-auth-operator

A+    Excellent!    Found 5 issues across 14 files

Tweet

gofmt92%

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!


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!


golint71%

Golint is a linter for Go source code.

    • aws-auth-operator/controllers/model/awsauth.go
    • Line 8: warning: exported type AwsAuthPatch should have comment or be unexported (golint)
    • Line 12: warning: exported type AwsAuthData should have comment or be unexported (golint)
    • Line 16: warning: exported type AwsAuthMapUsers should have comment or be unexported (golint)
    • Line 20: warning: exported type AwsAuthMapUsersItem should have comment or be unexported (golint)
    • aws-auth-operator/controllers/model/mapusers.go
    • Line 20: warning: exported type MapUsers should have comment or be unexported (golint)
    • Line 24: warning: exported function NewMapUsers should have comment or be unexported (golint)
    • Line 30: warning: exported method MapUsers.AddUser should have comment or be unexported (golint)
    • Line 45: warning: exported method MapUsers.ToAwsAuthMapUsersDump should have comment or be unexported (golint)
    • Line 61: warning: exported method MapUsers.ToPatch should have comment or be unexported (golint)
    • Line 81: warning: exported type IamClientInterface should have comment or be unexported (golint)
    • Line 85: warning: exported method MapUsers.LoadFromIamGroup should have comment or be unexported (golint)
    • Line 110: warning: exported type MapUsersItem should have comment or be unexported (golint)
    • Line 116: warning: exported method MapUsersItem.ToAwsAuthMapUsersItem should have comment or be unexported (golint)
    • Line 118: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words