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 25, 2022
1 parent 998ee8b commit ac942e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ class LineLength(configRules: List<RulesConfig>) : 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
}
}

Expand Down

0 comments on commit ac942e6

Please sign in to comment.