LeoColman
06/04/2022, 5:51 PMAndroidView({ LineChart(it) }, Modifier) {
val a = "abc"
val b = "def
}
This codes makes detekt fail and autocorrect it to
AndroidView({ LineChart(it) }, Modifier) {
val a = "abc"
val b = "def
}
A workaround for this case is
AndroidView(::LineChart, Modifier) {
val a = "abc"
}
Which is considered correct by ./gradlew detekt
Is this a known/intended behaviour? Should I open an issue on this?::Linechart
trick makes me think that detekt
doesn't like my {}
and parses the code incorrectlyephemient
06/04/2022, 6:00 PMgammax
06/04/2022, 7:15 PMLeoColman
06/04/2022, 7:44 PMdetektPlugin
was 1.19