gts13
09/15/2023, 7:52 AM1.23.1
.
Does anyone know if detekt can auto-correct new lines in functions and constructor params?
I mean, from this:
fun account(val name: String, val id: String, val dateOfBirth: Date) {
...
}
to this:
fun account(
val name: String,
val id: String,
val dateOfBirth: Date
) {
...
}
Sam
09/15/2023, 7:56 AMgts13
09/15/2023, 8:46 AMParameterListWrapping:
active: true
autoCorrect: true
maxLineLength: 140
indentSize: 4
gts13
09/15/2023, 8:47 AMdetekt {
input = files("$projectDir")
config = files("$rootDir/config/detekt/detekt.yml")
autoCorrect = true
parallel = true
buildUponDefaultConfig = true
reports {
html.enabled = true
xml.enabled = true
txt.enabled = false
}
ignoredBuildTypes = ["release"]
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.23.1"
detektPlugins "com.twitter.compose.rules:detekt:0.0.26"
}
}
Sam
09/15/2023, 10:02 AM