From 6ccdb65dff442fc7eab494b1490a7f78b75dd359 Mon Sep 17 00:00:00 2001 From: Arrgentum Date: Tue, 7 Jun 2022 19:57:23 +0300 Subject: [PATCH] corrected code ### Whats added: * corrected logic fix and warn String Template in LineLength rule * added logic fix and warn long Dot Qualified Expression and Safe Access Expression in LineLength rule * added logic fix and warn Value Arguments List in LineLength rule * added and corrected fix and warn tests in LineLength rule * moved fix logic to class methods * fix code with diktat:fix@diktat * added comments to classes and functions * corrected code ### Issue (#1243) --- .../common/config/rules/RulesConfigReader.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 da672a2cac..066f6f179d 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,13 +202,13 @@ 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) - ?.ignoreAnnotated - ?.map { it.trim() } - ?.map { it.trim('"') } - ?.intersect(annotations) - ?.isNotEmpty() - ?: false + getRuleConfig(rule) + ?.ignoreAnnotated + ?.map { it.trim() } + ?.map { it.trim('"') } + ?.intersect(annotations) + ?.isNotEmpty() + ?: false /** * Parse string into KotlinVersion