Open edpichler opened 7 months ago
it doesn't seem to be reliably working... I'm using the latest kotlin multiplatform which is generating own Resources... no matter of exclude result, the ktlint fails as it's not following predefined rules
it doesn't seem to be reliably working
I was having the same problem on 12.1.0
with any combination, moved to 12.1.1
using the config below and was solved:
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
enableExperimentalRules.set(true)
filter {
exclude { element ->
val path = element.file.path
path.contains("\\generated\\") || path.contains("/generated/")
}
}
}
The filter is not working in version 12.1.0 under Windows using the following configuration:
Below is how to workaround the problem:
I haven't tested it but it seems the problem is related to the
/
when different platforms.