-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter to exclude a generated dir is not working in version 12.1.0 #751
Comments
it doesn't seem to be reliably working... |
|
I was having the same problem on configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
enableExperimentalRules.set(true)
filter {
exclude { element ->
val path = element.file.path
path.contains("\\generated\\") || path.contains("/generated/")
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: