Add rule: truthy, to forbid truthy values that are not quoted

This commit is contained in:
Peter Ericson
2016-09-28 21:56:45 +10:00
committed by Adrien Vergé
parent c163135ee5
commit 1f472bc144
7 changed files with 105 additions and 2 deletions

View File

@@ -102,13 +102,13 @@ class CommentsIndentationTestCase(RuleTestCase):
' a: 1\n'
' # b: 2\n'
'# this object is useless\n'
'obj2: no\n', conf)
'obj2: "no"\n', conf)
self.check('---\n'
'obj1:\n'
' a: 1\n'
'# this object is useless\n'
' # b: 2\n'
'obj2: no\n', conf, problem=(5, 3))
'obj2: "no"\n', conf, problem=(5, 3))
self.check('---\n'
'obj1:\n'
' a: 1\n'