Raghunath.S.K
11/13/2024, 3:48 AMspotless {
kotlin {
ktlint().apply {
target("src/main/kotlin/**/*.kt") editorConfigOverride(
mapOf( "ij_kotlin_allow_trailing_comma" to "true", "ij_kotlin_allow_trailing_comma_on_call_site" to "true", "ktlint_function_naming_ignore_when_annotated_with" to "Composable" )
)
}
diktat().apply {
configFile("./../diktat-analysis.yml") targetExclude("src/test/kotlin/**/*.kt")
}
}
kotlinGradle {
diktat().configFile("./../diktat-analysis.yml") }
}
WE can clearly see that I have a targetExclude just for diktat().
Can anyone help me here please ? Am I missing something ?Paul Dingemans
11/14/2024, 8:31 AMmain
only. It looks like that you need test
as wellRaghunath.S.K
11/14/2024, 8:37 AMtarget("src/main/kotlin/**/*.kt","src/test/kotlin/**/*.kt")
still ktlint didnt work for tests .Paul Dingemans
11/14/2024, 10:38 AMRaghunath.S.K
11/14/2024, 10:39 AM