mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-26 01:20:15 -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. |
||
---|---|---|
.. | ||
rules | ||
yaml-1.2-spec-examples | ||
__init__.py | ||
common.py | ||
test_cli.py | ||
test_config.py | ||
test_linter.py | ||
test_module.py | ||
test_parser.py | ||
test_spec_examples.py | ||
test_syntax_errors.py | ||
test_yamllint_directives.py |