[ ] Snapshot documentation in case documentation is to be released together with a code change
[ ] Release documentation in case documentation is related to a released version of ktlint and has to be published as soon as the change is merged to master
Description
Exclude EOL-comments when check whether max line length is exceeded in rules other than max-line-length
Follow up on #2450 / #2516:
function-literal
in case the literal block just contains an EOL-comment onlydropTrailingComment
to private (it was not yet exposed in a released version before)Checklist
Before submitting the PR, please check following (checks which are not relevant may be ignored):
Closes #<xxx>
orFixes #<xxx>
(replace<xxx>
with issue number)Documentation is updated. See difference between snapshot and release documentation