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
Deprecate activateAllRules
#5291
Comments
Just my two cents. I (and I'm sure others too) do not want to list all the rules Detekt has, it's just noise in the configuration. It's much simpler to opt in to Compare default (as an example of a config that lists "almost" everything) vs my opt out configs. This might change if #4925 is possible... because then creating the new config is not tedious (except if there are comments for the configured rules... then it's still hell to add new ones.) Other analysis tools:
|
Just some historical context: |
Both points have sense. Thanks for the feedback. Closing :) |
The
activateAllRules
flag seems more a like a debug feature than a proper features. Enable all the rules by default is not a good call in general. We have a lot of controversial rules and we even have rules than do exactly the opposite:UseDataClass
andForbiddenPublicDataClass
.Because of this flag we also have really strange configurations on some rules (
excludes: ['**']
#4940).I still understand that some people want to start enabling ALL our rules and then disable the ones that they don't like. But I think that #5089 helps for that use case way better.
Also, once we remove this we will simplify our configuration code a bit more (#4926)
The text was updated successfully, but these errors were encountered: