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?LeoColman
06/04/2022, 5:52 PM::Linechart
trick makes me think that detekt
doesn't like my {}
and parses the code incorrectlyephemient
06/04/2022, 6:00 PMephemient
06/04/2022, 6:01 PMephemient
06/04/2022, 6:03 PMgammax
06/04/2022, 7:15 PMLeoColman
06/04/2022, 7:44 PMLeoColman
06/04/2022, 7:44 PMLeoColman
06/04/2022, 7:45 PMdetektPlugin
was 1.19LeoColman
06/04/2022, 7:45 PM