-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug reporting false positives with EmptyFunctionBlock (#1690)
* Fixed bug reporting false positives with EmptyFunctionBlock This rule had a bug in reporting functions with override and empty blocks (with or without comments). I'm fixing it and adding a couple of tests to make sure it works properly. Fixes #1684 * Clarify the documentation for the EmptyFunctionBlock rule * Running the fixed EmptyFunctionBlock on the codebase * Update EmptyFunctionBlockSpec to use hasLocationStrings * Introduce the `hasExactlyLocationStrings` assertion method.
- Loading branch information
1 parent
237e167
commit 8f96fc8
Showing
7 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,6 @@ class Empty : Runnable { | |
|
||
} | ||
|
||
fun emptyMethod() { | ||
|
||
} | ||
|
||
fun stuff() { | ||
try { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters