Skip to content

Commit

Permalink
Adding new logic for suppressing inspection
Browse files Browse the repository at this point in the history
### What's done:
- detekt fixes
  • Loading branch information
orchestr7 committed May 30, 2022
1 parent 19155c7 commit 5814edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ private fun hasAnySuppressorForInspection(
}
?.findAllDescendantsWithSpecificType(ANNOTATION_ENTRY)
?.map { it.psi as KtAnnotationEntry }
?: setOf()
?: emptySet()

val foundSuppress = annotationsForNode.containSuppressWithName(warningName)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test
class SuppressingTest : LintTestBase(::IdentifierNaming) {
private val ruleId: String = "$DIKTAT_RULE_SET_ID:${IdentifierNaming.NAME_ID}"
private val rulesConfigBooleanFunctions: List<RulesConfig> = listOf(
RulesConfig(IDENTIFIER_LENGTH.name, true, mapOf(), setOf("MySuperSuppress"))
RulesConfig(IDENTIFIER_LENGTH.name, true, emptyMap(), setOf("MySuperSuppress"))
)

@Test
Expand Down

0 comments on commit 5814edb

Please sign in to comment.