For the Detekt IDE plugin, is it possible to enabl...
# detekt
k
For the Detekt IDE plugin, is it possible to enable a rule per module? Looks like the configuration is in .idea/detekt.xml but you'd have to point to a different yml file that's global. I'd want to e.g. enable the UndocumentedPublic* rules only in an api module. I can do that via the detekt gradle plugin by configuring the plugin per module.
m
I stick with a single config file and add excludes sections for the modules that should not be included.
k
ahh.. so excludes would be set to
**
and includes would be set to
***/api/***
using this feature: https://detekt.dev/docs/introduction/configurations/#path-filters--excludes--includes Thanks...looks like that'll work 👍 🙂