You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But also, it might be addressed as a "bug" for the v1.
There is one thing that is a pain for now with the revive linters.
It behaves from the others like govet or gocritic when we want to enable one rule.
The behavior of default rules is inconsistent between linters.
Here is the minimal configuration to reproduce the issue
Welcome
Your feature request related to a problem? Please describe
I'm posting here as I think it could be part of v2 configuration for linters:
But also, it might be addressed as a "bug" for the v1.
There is one thing that is a pain for now with the revive linters.
It behaves from the others like govet or gocritic when we want to enable one rule.
The behavior of default rules is inconsistent between linters.
Here is the minimal configuration to reproduce the issue
(please note the rendering for revive here use the changes made in #5325)
So here we can see that
We have:
Let's now use the following config file
example.yml
Here we are configuring one rule per linter
Here are the result
Here we can see that revive will only enable
indent-error-flow
, while it could be expected to enable all the default ones, plus indent-error-flowDescribe the solution you'd like
the v2 could be a moment to rethink the way revive rules are enabled
Describe alternatives you've considered
Asking to people to do not forget to add all the default revive rules when they simply want to add a one
Additional context
No response
Supporter
The text was updated successfully, but these errors were encountered: