Hello, I was wondering if there are any recommenda...
# detekt
p
Hello, I was wondering if there are any recommendations on how to use detekt with as little configuration as possible. We are using the gradle-plugin, the idea plugin and try to just use the idea default code style. We don't really care if we are using wildcard imports or not, just as long as everybody are using the same (default) ruleset. When doing "reformat code", we would like all the rulesets to be aligned. Another example is the import ordering. The detekt idea plugin does not report on this, whereas the gradle plugin fails the build
Copy code
> Task :detekt FAILED
formatting - 5min debt
        ImportOrdering - [] at HealthRoutes.kt:3:1
This is our current config
g
So you want both the Idea plugin and the Gradle plugin to be aligned? And they both should use the default config?
k
tell the IDEA plugin to use the same config file...
p
I would like a developer fresh to the repo, using the default IntlliJ ruleset and having the Detekt-plugin installed, to just clone and do nothing more. So having the two plugins aligned and using the default config would be preferred 🙂 If I have a separate config file, I guess there needs to be some explicit configuration to be done to get it working?