You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Braces are not required for when branches and if statement bodies which have no else if/else branches and which fit on a single line.
Braces are otherwise required for any if, for, when branch, do, and while statements, even when the body is empty or contains only a single statement.
I can't stand the same for Kotlin coding conventions (but I think that it should apply too). More about this in #812
Expected Behavior
Extracted from Android Kotlin style guide
I can't stand the same for Kotlin coding conventions (but I think that it should apply too). More about this in #812
Observed Behavior
This code is not flagged and it should:
I fixed this issues in a similar rule in detekt detekt/detekt#2835 and detekt/detekt#2051
Your Environment
The text was updated successfully, but these errors were encountered: