Skip to content

Commit

Permalink
### Whats added:
Browse files Browse the repository at this point in the history
 * 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)
  • Loading branch information
Arrgentum committed May 31, 2022
1 parent 410a743 commit ada81be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ class LineLength(configRules: List<RulesConfig>) : 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()
Expand Down

0 comments on commit ada81be

Please sign in to comment.