Arthur Krukowski
01/03/2024, 10:33 AM--auto-correct option. When i specify it, the baseline file is ignored. Any thoughts on why this might be occurring?
./gradlew detekt // respects baseline file
./gradlew detekt --auto-correct // ignores baseline fileBrais Gabin
01/03/2024, 11:26 AMArthur Krukowski
01/03/2024, 11:37 AMArthur Krukowski
01/03/2024, 11:44 AM./gradlew detekt --auto-correct as a pre-commit hook is feasible. However, if this approach does not consider the baseline file, it will not work for us.Brais Gabin
01/03/2024, 11:52 AM--auto-correct for the formatting rule set. That's a wrapper around ktlint. And as far as I know ktlint has its own baseline. It's now possible to use it while using detekt but maybe you could think to split your formatting and your static analysis (code smells) in two. So you use ktlint (and any of their pluggins, I recommend spotless) for formatting and detekt for code smells.Arthur Krukowski
01/03/2024, 11:55 AMI imagine that you useYeah, this our case) Thanks for suggestion, I’ll consider it.for the--auto-correctrule set.formatting