How to enable fieldalignment? #2194
-
After I upgrade golangci-lint, it warns me that "The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'.". But I haven't found a way to enable it. Both
and
don't work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, You have to enable linters-settings:
govet:
enable:
- fieldalignment
linters:
enable:
- govet |
Beta Was this translation helpful? Give feedback.
-
I run My golangci-lint version is |
Beta Was this translation helpful? Give feedback.
Hello,
You have to enable
govet
: