mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-29 10:33:49 -06:00
ca540c113b
If a key-value pair follows an empty list, i.e.: ```yaml a: - b: c ``` yamllint will complain: ``` warning wrong indentation: expected 2 but found 0 (indentation) ``` This is because it is expecting the second key to be a continuation of the block entry above: ```yaml a: - b: c ``` However, both are perfectly valid, though structurally different. |
||
---|---|---|
.. | ||
__init__.py | ||
test_braces.py | ||
test_brackets.py | ||
test_colons.py | ||
test_commas.py | ||
test_comments_indentation.py | ||
test_comments.py | ||
test_common.py | ||
test_document_end.py | ||
test_document_start.py | ||
test_empty_lines.py | ||
test_hyphens.py | ||
test_indentation.py | ||
test_key_duplicates.py | ||
test_line_length.py | ||
test_new_line_at_end_of_file.py | ||
test_new_lines.py | ||
test_trailing_spaces.py | ||
test_truthy.py |