Rules: document-start: Allow directives

This commit is contained in:
Adrien Vergé
2016-01-14 17:09:25 +01:00
parent 851b9ac42c
commit 5cc900f2a8
3 changed files with 29 additions and 10 deletions

View File

@@ -29,3 +29,9 @@ class YamlLintTestCase(RuleTestCase):
'this is an error: [\n'
'\n'
'...\n', None, problem=(6, 1))
def test_directives(self):
self.check('%YAML 1.2\n'
'%TAG ! tag:clarkevans.com,2002:\n'
'doc: ument\n'
'...\n', None, problem=(3, 1))