-
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
Ktlint checks generated source since 12.1.0 #746
Comments
Until this is fixed put this in # Disable ktlint on generated source code, see
# https://github.com/JLLeitschuh/ktlint-gradle/issues/746
[**/build/generated/source/**]
ktlint = disabled |
This did not help unfortunately |
Worked in pachli/pachli-android#376 - look at the CI runs for that PR, you'll see the first one failed because of this issue, and adding this editorconfig fixed it. |
Hhm, for me [**/build/generated/**]
ktlint = disabled did not work, but [build/generated/*/main/**]
ktlint = disabled did! |
Same problem here. |
Here is a workaround: #751 |
Potentially the root cause: google/ksp#1261 |
Since version 12.1.0 of your ktlint gradle plugin, my android build fails.
I tried to exclude the generated sources from ktlint checks, but this didn't work
I include the generated sources in the main source set like this:
Could someone help? Maybe I configure something wrong.
The text was updated successfully, but these errors were encountered: