Disable ktlint rules with ktlint-gradle version 12.0.2 #728
-
I hope it is appropriate to ask for support here. I upgraded the ktlint-gradle plugin to version 12.0.2 and now it does not respect the settings in my modules' build.gradle where I previously disabled some rules like that:
I also tried using a .editorconfig file but that does not allow all the options I need. Disabling max_line_lenth did work there but I dont have the option for package-name. In the projects build.gradle I have the ktlint-gradle dependency in the buildscript and for allprojects I apply the ktlint-gradle plugin.
I am not sure if this is a ktlint configuration problem, oder gradle, or android studio, or most likely me not understanding editorconfig correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you want: https://pinterest.github.io/ktlint/dev-snapshot/rules/standard/ |
Beta Was this translation helpful? Give feedback.
I think you want:
ktlint_standard_package-name = disabled
See:
https://pinterest.github.io/ktlint/latest/faq/#why-is-editorconfig-property-disabled_rules-deprecated-and-how-do-i-resolve-this
https://pinterest.github.io/ktlint/dev-snapshot/rules/standard/