https://kotlinlang.org logo
#ktlint
Title
# ktlint
d

David Smith

05/24/2022, 4:35 PM
I have a custom rule that I want to run on a gradle module however it should run on the main sourceset only, not on the test sourceset, i.e. tests should be excluded from my rule. Does anyone know how I can do this with org.jlleitschuh.gradle.ktlint gradle extension, or some other way?
s

Sha Sha Chu

05/24/2022, 6:45 PM
d

David Smith

05/25/2022, 9:23 AM
that won’t work because I want to run all ktlint rules except my custom rule
ah, I can do this with the .editorconfig file, disable a rule for test paths
3 Views