Use this rule to set a limit to lines length.
true to allow, false to forbid.allow-non-breakable-words and extends it to also allow non-breakable words in inline mappings.Examples
With max = 70
the following code snippet would PASS:
long sentence:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
the following code snippet would FAIL:
long sentence:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
With max = 60 and allow-non-breakable-words = true
the following code snippet would PASS:
this:
is:
- a:
http://localhost/very/very/very/very/very/very/very/very/long/url
# this comment is too long,
# but hard to split:
# http://localhost/another/very/very/very/very/very/very/very/very/long/url
the following code snippet would FAIL:
- this line is waaaaaaaaaaaaaay too long but could be easily split...
and the following code snippet would FAIL as well:
- foobar: http://localhost/very/very/very/very/very/very/very/very/long/url
With max = 60, allow-non-breakable-words = true and allow-non-breakable-inline-mappings = true
the following code snippet would PASS:
- foobar: http://localhost/very/very/very/very/very/very/very/very/long/url
With max = 60 and allow-non-breakable-words = false
the following code snippet would FAIL:
this:
is:
- a:
http://localhost/very/very/very/very/very/very/very/very/long/url