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 709996f574..faea4eda80 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 @@ -644,7 +644,7 @@ class LineLength(configRules: List) : DiktatRule( .sortedBy { it.second } .reversed() .firstOrNull { (it, offset) -> - offset + (it.getFirstChildWithType(type)?.text?.length ?:0)<= configuration.lineLength + 1 + offset + (it.getFirstChildWithType(type)?.text?.length ?: 0) <= configuration.lineLength + 1 } }