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