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
I had some problems with config as well. But this code fixed the issue for me: config.from(files("${project.rootDir}/config/quality/detekt/default-config.yml"))
Right, the cli respects the config parameter but the gradle plugin not.
So the fix is quite easy in the gradle plugin.
Not sure if this is a bug or feature. I would consider this for a 1.X.0 release as this will need a migration entry.
Expected Behavior
./gradlew detektGenerateConfig
creates the config file in the definedconfig
path defined in the configurationObserved Behavior
The
config
is ignored and the task creates it in the default path:config/detekt/detekt.yml
Steps to Reproduce
Configure the plugin like this:
and then run:
./gradlew detektGenerateConfig
Your Environment
The text was updated successfully, but these errors were encountered: