From 6201472ea99b0d3426b8b45601e32dd154d05fa6 Mon Sep 17 00:00:00 2001 From: Arrgentum Date: Tue, 31 May 2022 19:19:36 +0300 Subject: [PATCH] ### 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 * fix code with diktat:fix@diktat * added comments to classes and functions * correct code with running detect ### Issue (#1243) --- .../kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt index ef96fe2064..0e1ae31832 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt @@ -653,7 +653,7 @@ class LineLength(configRules: List) : DiktatRule( /** * Finds the first dot or safe access closer to the separator */ - @Suppress("MAGIC_NUMBER") + @Suppress("MagicNumber") private fun searchRightSplitBeforeDotOrSafeAccess( parent: ASTNode, configuration: LineLengthConfiguration,