detekt-api
1.21.0-RC2

# isSuppressedBy

fun KtElement. isSuppressedBy ( id: String , aliases: Set < String >, ruleSetId: RuleSetId ? = null): Boolean
Content copied to clipboard

Checks if this psi element is suppressed by @Suppress or @SuppressWarnings annotations. If this element cannot have annotations, the first annotative parent is searched.

fun KtAnnotated. isSuppressedBy ( id: RuleId , aliases: Set < String >, ruleSetId: RuleSetId ? = null): Boolean
Content copied to clipboard

Checks if this kt element is suppressed by @Suppress or @SuppressWarnings annotations.