@Test
fun`Don't raise issues with pair creation`() {
val code =""" fun foo() { 1 to 1 }""".trimIndent()
val findings =UnnecessaryPartOfBinaryExpression().compileAndLint(code)
assertThat(findings).hasSize(0)
}
Your Environment
Version of detekt used: 1.22.0-RC3
The text was updated successfully, but these errors were encountered:
I created a test to demostrate the bug:
Your Environment
The text was updated successfully, but these errors were encountered: