diff --git a/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt b/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt index 652de14739..da672a2cac 100644 --- a/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt +++ b/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt @@ -202,7 +202,7 @@ fun List.isRuleEnabled(rule: Rule): Boolean { * @return true if the code block is marked with annotation that is in `ignored list` in the rule */ fun List.isAnnotatedWithIgnoredAnnotation(rule: Rule, annotations: Set): Boolean = - getRuleConfig(rule) + getRuleConfig(rule) ?.ignoreAnnotated ?.map { it.trim() } ?.map { it.trim('"') }