Eric
03/08/2022, 10:30 PM// ktlint-disable
just after the package declaration, but that didn’t workEndre Deak
03/08/2022, 10:52 PMEndre Deak
03/08/2022, 10:52 PMEndre Deak
03/08/2022, 10:53 PM# build.gradle.kts
val excludeFilesFromFormatChecking = listOf("fileToExclude1", "fileToExclude2", "...")
tasks.withType<FormatTask> { exclude { f -> excludeFilesFromFormatChecking.any { p -> f.name.contains(p) } } }
tasks.withType<LintTask> { exclude { f -> excludeFilesFromFormatChecking.any { p -> f.name.contains(p) } } }
tasks.withType<Detekt> { exclude { f -> excludeFilesFromFormatChecking.any { p -> f.name.contains(p) } } }
Endre Deak
03/08/2022, 10:53 PMkotlinter
pluginEric
03/09/2022, 1:31 PMEric
03/09/2022, 1:35 PMEric
03/09/2022, 2:07 PM@file:Suppress("Indentation")
on the test classes that use every { … } just runs
Eric
03/09/2022, 2:50 PMevery {
kafkaProducer.synchronousSend(
Topics.query.sourcing,
match { it.orderNumber == report.lastOrder().orderNumber },
capture(producedValue)
)
} just Runs
tried to create a minimal project to reproduce, but couldn’t get it to happen w/ a simple test case