[opt] add cache to the logic of auth to improve performance in the sc… #3282
Annotations
3 errors and 5 warnings
lint:
server/plugin/auth/buildin/buildin.go#L167
S1034: assigning the result of this type assertion to a variable (switch claims := claims.(type)) could eliminate type assertions in switch cases (gosimple)
|
lint:
server/plugin/auth/buildin/buildin.go#L169
S1034(related information): could eliminate this type assertion (gosimple)
|
lint
issues found
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, golangci/golangci-lint-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint:
server/plugin/auth/buildin/buildin.go#L184
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|