Preparing report...

Report for github.com/cloudfoundry-community/go-uaa

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


golint88%

Golint is a linter for Go source code.

    • go-uaa/api.go
    • Line 74: warning: exported type Option should have comment or be unexported (golint)
    • Line 78: warning: exported type AuthenticationOption should have comment or be unexported (golint)
    • Line 82: warning: exported function New should have comment or be unexported (golint)
    • Line 103: warning: exported method API.Token should have comment or be unexported (golint)
    • Line 220: warning: exported function WithClient should have comment or be unexported (golint)
    • Line 232: warning: exported function WithTransport should have comment or be unexported (golint)
    • Line 244: warning: exported function WithSkipSSLValidation should have comment or be unexported (golint)
    • Line 256: warning: exported function WithUserAgent should have comment or be unexported (golint)
    • Line 268: warning: exported function WithZoneID should have comment or be unexported (golint)
    • Line 280: warning: exported function WithVerbosity should have comment or be unexported (golint)
    • Line 294: warning: exported function WithClientCredentials should have comment or be unexported (golint)
    • Line 332: warning: exported function WithPasswordCredentials should have comment or be unexported (golint)
    • Line 380: warning: exported function WithAuthorizationCode should have comment or be unexported (golint)
    • Line 432: warning: exported function WithRefreshToken should have comment or be unexported (golint)
    • Line 481: warning: exported function WithToken should have comment or be unexported (golint)
    • Line 519: warning: exported function WithNoAuthentication should have comment or be unexported (golint)
    • go-uaa/groups.go
    • Line 129: warning: exported method API.MapGroup should have comment or be unexported (golint)
    • Line 147: warning: exported method API.UnmapGroup should have comment or be unexported (golint)
    • Line 160: warning: exported method API.ListGroupMappings should have comment or be unexported (golint)
    • Line 189: warning: comment on exported method API.ListAllGroupMappings should be of the form "ListAllGroupMappings ..." (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!