feat!: login refactor #7
Annotations
9 errors and 10 warnings
golangci-lint:
internal/config/config_handler.go#L1
: # github.com/SwissDataScienceCenter/renku-gateway/internal/config [github.com/SwissDataScienceCenter/renku-gateway/internal/config.test]
|
golangci-lint:
internal/config/config_handler_test.go#L4
"fmt" imported and not used (typecheck)
|
golangci-lint:
internal/db/redisadapters_mock.go#L31
unchecked-type-assertion: type cast result is unchecked in values[i].(string) - type assertion will panic if not matched (revive)
|
golangci-lint:
internal/db/redisadapters_mock.go#L78
unchecked-type-assertion: type cast result is unchecked in val.([]redis.Z) - type assertion will panic if not matched (revive)
|
golangci-lint:
internal/db/redisadapters_mock.go#L101
unchecked-type-assertion: type cast result is unchecked in val.(map[string]any) - type assertion will panic if not matched (revive)
|
golangci-lint:
internal/db/redisadapters_mock.go#L106
unchecked-type-assertion: type cast result is unchecked in v.(encoding.TextMarshaler) - type assertion will panic if not matched (revive)
|
golangci-lint:
internal/db/redisadapters_mock.go#L126
unchecked-type-assertion: type cast result is unchecked in valRaw.([]redis.Z) - type assertion will panic if not matched (revive)
|
golangci-lint:
internal/db/redisadapters_test.go#L36
unchecked-type-assertion: type cast result is unchecked in fieldValue.(string) - type assertion will panic if not matched (revive)
|
golangci-lint
golangci-lint exit with code 2
|
golangci-lint:
cmd/login/main.go#L1
file-header: the file doesn't have an appropriate header (revive)
|
golangci-lint:
cmd/login/main.go#L25
line-length-limit: line is 123 characters, out of limit 120 (revive)
|
golangci-lint:
internal/gwerrors/errors.go#L2
file-header: the file doesn't have an appropriate header (revive)
|
golangci-lint:
internal/oidc/client_test.go#L104
cognitive-complexity: function TestTokenCallback has cognitive complexity 18 (> max enabled 7) (revive)
|
golangci-lint:
internal/oidc/client.go#L20
cognitive-complexity: function (*Client).getCodeExchangeCallback has cognitive complexity 11 (> max enabled 7) (revive)
|
golangci-lint:
internal/oidc/client.go#L101
cognitive-complexity: function WithOIDCConfig has cognitive complexity 19 (> max enabled 7) (revive)
|
golangci-lint:
internal/oidc/client_store_test.go#L1
file-header: the file doesn't have an appropriate header (revive)
|
golangci-lint:
internal/oidc/client_store.go#L33
import-shadowing: The name 'config' shadows an import name (revive)
|
golangci-lint:
internal/oidc/client_test.go#L30
unused-receiver: method receiver 'm' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
golangci-lint:
internal/oidc/client_test.go#L42
var-naming: method HttpClient should be HTTPClient (revive)
|
The logs for this run have expired and are no longer available.
Loading