rules.EmptyCatchBlock.md Maven / Gradle / Ivy
Checks that `catch` blocks are not empty, or are commented with the word `expected` or `ignore`.
Valid:
````
try {
something();
} catch (Exception e) {
// ignore
}
````
Invalid:
````
try {
something();
} catch (Exception e) {
// do nothing
}
````
© 2015 - 2024 Weber Informatics LLC | Privacy Policy