Pattern: Empty finally
block
Issue: -
Checks for empty finally blocks. Empty finally blocks are confusing and serve no purpose.
Here is an example of code that produces a violation:
def someMethod() {
try {
doSomething()
} finally {
// empty
}
}