Add "Control flow with empty body" inspection

#KT-30970 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-04-16 15:03:35 +09:00
committed by Dmitry Gridin
parent d2fcb8cc6a
commit 65f06454be
45 changed files with 710 additions and 1 deletions
@@ -0,0 +1,9 @@
// PROBLEM: 'else' has empty body
// FIX: none
fun test(i: Int) {
if (i == 1) {
} <caret>else {
// comment
}
}