From ada81be677cdd9dbfc7a86210c13dc068ee3801d Mon Sep 17 00:00:00 2001 From: Arrgentum Date: Tue, 31 May 2022 17:13:43 +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 6d118ce9ae..03aef1e4c1 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 @@ -646,7 +646,7 @@ class LineLength(configRules: List) : DiktatRule( DOT, SAFE_ACCESS -> searchDotOrSafeAccess(parent, list) } return list.map { - it to (it.getFirstChildWithType(type)?.startOffset ?: (configuration.lineLength.toInt() + 10)) + it to (it.getFirstChildWithType(type)?.startOffset ?: (configuration.lineLength.toInt() + 1)) } .sortedBy { it.second } .reversed()