Hello - how to enable this rule? <https://github.c...
# detekt
m
g
Have you imported the detekt formatting plugin?
i
Thx I was able to make it work. It looks like my default detekt config didn't have any rules from the above
detekt-formating
rule set. I added this manually and it had worked. @gammax is there a detekt check to make sure that custom config file contains all of the rules? (kid of detekt config meta check) As you see it is easy to miss
detekt-formating
rule set ot upgrade detekt without updating config files (thus config for some rules will stay kind of hidden)
BTW There may be also potential improvement for the documentation as it was not obvious how to enable these rule with custom config (I would expect to have some info here https://detekt.dev/docs/rules/formatting)
s
Thanks for the hint! May I ask you to submit your ideas via GitHub issues?
i
Two separate actions from this discussion 1. Docs update PR https://github.com/detekt/detekt/pull/5345 2. Added a comment to existing "detekt config upgrade" https://github.com/detekt/detekt/issues/4517