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()