-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactoring]: fix sca problems #2133
Comments
A sca result in 20220420 is as follows: |
220506 Updated:
details refered to lint-b2cfd19.txt |
Linter golangci-lint run --disable-all -E stylecheck
WARN [linters context] stylecheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. The same as |
ineffassign
for non-test code, just enable it for test code.
#2508
Now with This could be verified via the following command: golangci-lint run \
-E misspell -E exportloopref -E rowserrcheck -E depguard \
-D unconvert -E prealloc -E gofmt -E stylecheck -D errcheck For cases marked by |
Now all the cases for non-test code, which marked via linter |
Is there an existing issue for the refactoring request?
Is your refactoring request related to a problem?
For now, several code files in our repo are undesirable from the perspective of static analysis tools, please fix these questions asap.
You can execute sca locally by following steps:
Describe the solution you'd like
check every warning and fix it.
Describe alternatives you've considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: