public class EmptyCatchBlock
extends EmptyRule
Reports empty catch
blocks. Empty blocks of code serve no purpose and should be removed.
Modifier and Type | Class and Description |
---|---|
static class |
EmptyCatchBlock.Companion |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOWED_EXCEPTION_NAME_REGEX |
static EmptyCatchBlock.Companion |
Companion |
Constructor and Description |
---|
EmptyCatchBlock(io.gitlab.arturbosch.detekt.api.Config config)
Reports empty
catch blocks. Empty blocks of code serve no purpose and should be removed. |
Modifier and Type | Method and Description |
---|---|
void |
visitCatchSection(org.jetbrains.kotlin.psi.KtCatchClause catchClause) |
addFindingIfBlockExprIsEmpty, addFindingIfBlockExprIsEmptyAndNotCommented, getIssue
public static java.lang.String ALLOWED_EXCEPTION_NAME_REGEX
public static EmptyCatchBlock.Companion Companion