Open ede-wolf-gls opened 10 months ago
Until this is fixed put this in .editorconfig
:
# Disable ktlint on generated source code, see
# https://github.com/JLLeitschuh/ktlint-gradle/issues/746
[**/build/generated/source/**]
ktlint = disabled
Until this is fixed put this in
.editorconfig
:# 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 ☹️
Until this is fixed put this in
.editorconfig
:# 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 https://github.com/pachli/pachli-android/pull/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: https://github.com/JLLeitschuh/ktlint-gradle/issues/751
Potentially the root cause: https://github.com/google/ksp/issues/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.