Preparing report...

Report for github.com/keratin/authn-go

A+    Excellent!    Found 4 issues across 11 files

Tweet

gofmt90%

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!


golint63%

Golint is a linter for Go source code.

    • authn-go/authn/config.go
    • Line 4: warning: exported const DefaultKeychainTTL should have comment (or a comment on this block) or be unexported (golint)
    • authn-go/authn/interfaces.go
    • Line 8: warning: comment on exported type JWKProvider should be of the form "JWKProvider ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type JWTClaimsExtractor should be of the form "JWTClaimsExtractor ..." (with optional leading article) (golint)
    • authn-go/authn/keychain_cache_test.go
    • Line 19: warning: don't use underscores in Go names; struct field key_map should be keyMap (golint)
    • Line 20: warning: don't use underscores in Go names; struct field hit_count should be hitCount (golint)
    • Line 52: warning: don't use underscores in Go names; var mock_provider should be mockProvider (golint)
    • Line 53: warning: don't use underscores in Go names; var keychain_cache should be keychainCache (golint)
    • Line 62: warning: don't use underscores in Go names; var keys1_again should be keys1Again (golint)
    • Line 78: warning: don't use underscores in Go names; var mock_provider should be mockProvider (golint)
    • Line 79: warning: don't use underscores in Go names; var keychain_cache should be keychainCache (golint)
    • Line 86: warning: don't use underscores in Go names; var keysNone_again should be keysNoneAgain (golint)
    • Line 93: warning: don't use underscores in Go names; var mock_provider should be mockProvider (golint)
    • Line 94: warning: don't use underscores in Go names; var keychain_cache should be keychainCache (golint)
    • Line 117: warning: don't use underscores in Go names; var mock_provider should be mockProvider (golint)
    • Line 118: warning: don't use underscores in Go names; var keychain_cache should be keychainCache (golint)
    • Line 125: warning: don't use underscores in Go names; var keysError_again should be keysErrorAgain (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!