-
I have just upgraded DataFramework 0.10.0 to align with Kotlin 1.8.20, but I found former kolinter config does not work.
When I ran I ran the command formatKotlinGeneratedByKspKotlin
formatKotlinGeneratedByKspTestKotlin I tried to set up config for the task
or
It does not work. How to skip the Kotinter lint/format tasks for all generated files. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
The linter tasks is controlled by |
Beta Was this translation helpful? Give feedback.
-
There is a new KSP plugin was just released. https://github.com/google/ksp/releases/tag/1.8.20-1.0.11 I added the KSP plugin explicitly in my project. id("com.google.devtools.ksp") version "1.8.20-1.0.11" But there is still no way to exclude the KSP generated files. I tried to add the following suggested by jeremymailen/kotlinter-gradle#322 (comment) tasks.named("formatKotlinGeneratedByKspKotlin").configure {
enabled = false
}
tasks.named("formatKotlinGeneratedByKspTestKotlin").configure {
enabled = false
} And got the exception: Task with name 'formatKotlinGeneratedByKspKotlin' not found in root project 'my-backend'. |
Beta Was this translation helpful? Give feedback.
-
Finally add the following code fragment to skip the kotliner KSP related tasks. tasks.whenTaskAdded {
// println("adding task: $name")
if (name == "lintKotlinGeneratedByKspKotlin" ||
name == "lintKotlinGeneratedByKspTestKotlin" ||
name == "formatKotlinGeneratedByKspKotlin" ||
name == "formatKotlinGeneratedByKspTestKotlin"
) {
enabled = false
}
} |
Beta Was this translation helpful? Give feedback.
-
The Is this issue fixed in the DataFrame 0.10.1? |
Beta Was this translation helpful? Give feedback.
Finally add the following code fragment to skip the kotliner KSP related tasks.