Atul Gupta
06/23/2023, 9:48 AMdetekt
to give warning for below code?
fun test(foo: Int): Int {
if (foo > 0) {
return 0
} else {
return 1
}
}
instead support below code
fun test(foo: Int): Int {
return if (foo > 0) {
0
} else {
1
}
}
same with when
expression of variable assignmentBrais Gabin
06/23/2023, 10:59 AMschalkms
06/24/2023, 9:31 PMAtul Gupta
06/25/2023, 7:56 PMdetekt
idea plugin provide intention and quick fixes?Brais Gabin
06/27/2023, 10:34 PM