|
|
|
@ -84,6 +84,8 @@ class LineLengthTestCase(RuleTestCase):
|
|
|
|
|
'another:\n'
|
|
|
|
|
' - https://localhost/very/very/long/url\n'
|
|
|
|
|
'...\n', conf)
|
|
|
|
|
self.check('---\n'
|
|
|
|
|
'long_line: http://localhost/very/very/long/url\n', conf)
|
|
|
|
|
|
|
|
|
|
conf = 'line-length: {max: 20, allow-non-breakable-words: no}'
|
|
|
|
|
self.check('---\n' + 30 * 'A' + '\n', conf, problem=(2, 21))
|
|
|
|
@ -106,3 +108,6 @@ class LineLengthTestCase(RuleTestCase):
|
|
|
|
|
'another:\n'
|
|
|
|
|
' - https://localhost/very/very/long/url\n'
|
|
|
|
|
'...\n', conf, problem=(5, 21))
|
|
|
|
|
self.check('---\n'
|
|
|
|
|
'long_line: http://localhost/very/very/long/url\n'
|
|
|
|
|
'...\n', conf, problem=(2, 21))
|
|
|
|
|