Preparing report...

Report for github.com/adminium/dex

(v0.0.0-20230316025412-c3b95e63bbe2)

B    Not bad!    Found 89 issues across 138 files

Tweet

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!


gofmt35%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo89%

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.

    • server/server_test.go
    • Line 260: warning: cyclomatic complexity 45 of function makeOAuth2Tests() is high (> 15) (gocyclo)
    • Line 711: warning: cyclomatic complexity 24 of function TestOAuth2CodeFlow() is high (> 15) (gocyclo)
    • Line 1566: warning: cyclomatic complexity 22 of function TestOAuth2DeviceFlow() is high (> 15) (gocyclo)
    • Line 889: warning: cyclomatic complexity 18 of function TestOAuth2ImplicitFlow() is high (> 15) (gocyclo)
    • Line 1025: warning: cyclomatic complexity 17 of function TestCrossClientScopes() is high (> 15) (gocyclo)
    • Line 1148: warning: cyclomatic complexity 17 of function TestCrossClientScopesWithAzpInAudienceByDefault() is high (> 15) (gocyclo)
    • server/handlers.go
    • Line 1092: warning: cyclomatic complexity 32 of function (*Server).handlePasswordGrant() is high (> 15) (gocyclo)
    • Line 919: warning: cyclomatic complexity 20 of function (*Server).exchangeAuthCode() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 19 of function (*Server).handleConnectorCallback() is high (> 15) (gocyclo)
    • Line 640: warning: cyclomatic complexity 18 of function (*Server).sendCodeResponse() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 18 of function (*Server).handlePasswordLogin() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 16 of function (*Server).handleConnectorLogin() is high (> 15) (gocyclo)
    • storage/kubernetes/storage.go
    • Line 613: warning: cyclomatic complexity 19 of function (*client).GarbageCollect() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 17 of function (*Config).open() is high (> 15) (gocyclo)
    • server/oauth2.go
    • Line 413: warning: cyclomatic complexity 37 of function (*Server).parseAuthorizationRequest() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 21 of function (*Server).newIDToken() is high (> 15) (gocyclo)
    • server/deviceflowhandlers.go
    • Line 282: warning: cyclomatic complexity 25 of function (*Server).handleDeviceCallback() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 16 of function (*Server).handleDeviceToken() is high (> 15) (gocyclo)
    • server/api_test.go
    • Line 344: warning: cyclomatic complexity 23 of function TestUpdateClient() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 18 of function TestPassword() is high (> 15) (gocyclo)
    • connector/saml/saml.go
    • Line 295: warning: cyclomatic complexity 37 of function (*provider).HandlePOST() is high (> 15) (gocyclo)
    • Line 127: warning: cyclomatic complexity 18 of function (*Config).openConnector() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!