-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enable only non-deprecated linter with enable-all
#1986
Comments
The deprecation cycle required user interaction, because the user should be aware of the deprecation. Then we cannot automatically hide the deprecation, the user should know that he has to use another linter. An option Also The deprecation cycle can be discussed (when we drop a linter), but personally, I'm against adding an option to disable deprecated linters or to correlate |
Hmm, I see. I hadn't thought that far ahead. Thanks
If we are designing the deprecation cycle to drop deprecated linters finally, this proposal may not be necessary. But, if not, from the point of view of new golangci-lint users, in order to avoid using deprecated linters, they need to use |
I would like to propose to close this issue and open another to discuss the deprecation cycle, WDYT? |
Okey, Thank you 👍 |
Is your feature request related to a problem? Please describe.
Now,
enable-all
enable all linters including deprecated linter.Describe the solution you'd like
If we want to avoid deprecated linter, we need to disable them using
-disable
It is proposed to change the specification of deprecated linter to not be enabled by enable-all.
Describe alternatives you've considered
add a
disable-deprecated
option to automatically disable all deprecated linterAdditional context
(Yeah, I know that there is a discussion on whether to deprecate the enable-all option in #1888 :))
The text was updated successfully, but these errors were encountered: