You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/tests
Adrien Vergé 76f47e91ca Rules: indentation: Handle imbricated flows correctly
The following source -- although not loadable by pyyaml -- is valid
YAML:

    {{key}}: value

This was processed badly by yamllint. The same for `[[value]]`,
`{{{{{moustaches}}}}}` or:

    {[val,
      {{key: val,
        key2}}]}

This patch corrects it and add corresponding test cases.

Related-to: #3
9 years ago
..
rules Rules: indentation: Handle imbricated flows correctly 9 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 9 years ago
__init__.py Initial commit 9 years ago
common.py Tests: Reorganize common and global tests 9 years ago
test_config.py Config: Allow 'enable' keyword for rules 9 years ago
test_linter.py linter: Test run on str, unicode, bytes and stream 9 years ago
test_parser.py Tests: Remove Python 2.6 from CI tests 9 years ago
test_spec_examples.py Tests: Use absolute path to spec examples 9 years ago
test_syntax_errors.py Rules: indentation: Handle sets 9 years ago