Dariusz Kuc
03/02/2020, 10:19 PMorg.jlleitschuh.gradle.ktlint which automatically applies the linter against all source sets.
Currently I'm manually configuring ktlint task to filter out generated sources but was wondering whether there is some better way?
tasks {
ktlint {
filter {
exclude("**/generated/**")
}
}
}
e.g. above approach is not ideal as anyone using the plugin will have to add that configuration as welltapchicoma
03/02/2020, 10:25 PMtapchicoma
03/02/2020, 10:26 PMextensions.configure(KtlintExtension::class.java) { filter { exclude(..) }}Dariusz Kuc
03/02/2020, 10:26 PMDariusz Kuc
03/02/2020, 10:26 PMtapchicoma
03/02/2020, 10:28 PMplugins.withId("org.jlleitschuh.gradle.ktlint") { // configure extension here }Dariusz Kuc
03/03/2020, 12:35 AMmbonnin
03/03/2020, 8:05 AM