Rules: indentation: Handle sets

Sets are like mappings, that do not contain values. Example:

    set:
      ? key one
      ? key two
      ? [non, scalar, key]
This commit is contained in:
Adrien Vergé
2016-02-01 17:52:46 +01:00
parent 431a379c81
commit 68618be4cc
3 changed files with 27 additions and 2 deletions

View File

@@ -110,6 +110,7 @@ conf_overrides = {
'example-8.9': ('empty-lines: {max-end: 1}\n'),
'example-8.14': ('colons: {max-spaces-before: 1}\n'),
'example-8.16': ('indentation: {spaces: 1}\n'),
'example-8.17': ('indentation: disable\n'),
}
files = os.listdir('tests/yaml-1.2-spec-examples')
@@ -125,9 +126,7 @@ def _gen_test(buffer, conf):
# The following tests are blacklisted because they contain rarely-used formats
# that yamllint does not handle yet.
tmp_blacklist = (
'example-2.25',
'example-7.16',
'example-8.17',
'example-8.20',
'example-8.22',
'example-10.1',