Skip to main content

RCS0056: A line is too long

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Summary

This analyzer reports any line that is longer than maximum length.

Default maximum length is 140.

Configuration

.editorconfig
# Maximum line length
# Default value is 140
roslynator_max_line_length = <NUM>

# A number of spaces that are equivalent to a tab character
# Default value is 4
roslynator_tab_length = <NUM>

Remarks

Code fixer is available for this analyzer but it cannot handle all cases as it's not possible to wrap a line in all cases (e.g. long string literals).

If a particular line seems that it could be reasonably wrapped but it's not, please file an issue.

Applies to