Manuel Lorenzo
07/12/2023, 8:34 AMdetekt
for the first time, and I'm trying to run ./gradlew detekt --auto-correct
but it isn't working. I have a config/detekt.yml
with the default generated config and a detekt.gradle
file where with the following content:
apply plugin: 'io.gitlab.arturbosch.detekt'
detekt {
...
config.setFrom("$projectDir/config/detekt.yml")
autoCorrect = true
}
dependencies {
detektPlugins libs.detekt.formatting
}
Is there anything I'm doing wrong? Thanks!Nicholas Doglio
07/12/2023, 11:25 AMauto-correct
just works on the formatting rules and not any other ruleset.
Are the formatting rules added to your config file?Manuel Lorenzo
07/28/2023, 9:20 AM