-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
detektGenerateConfig ignores detekt.config paramenter #2565
Comments
I had some problems with config as well. But this code fixed the issue for me: |
Right, the cli respects the config parameter but the gradle plugin not. |
Ok, I was trying to fix this but it's not that easy. We allow to add multiple paths in |
Let's go with the last one as it overwrites the properties of the preceding. E.g.: config1,config2 we would use config2 |
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: