yamllint/tests/rules
Tim Wade ca540c113b Fix indentation rule for key following empty list
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.
2017-10-16 22:17:58 +02:00
..
__init__.py Initial commit 2016-01-14 10:46:14 +01:00
test_braces.py Rules: Add min-spaces-inside-empty and max-spaces-inside-empty 2017-03-13 13:36:55 +01:00
test_brackets.py Rules: Add min-spaces-inside-empty and max-spaces-inside-empty 2017-03-13 13:36:55 +01:00
test_colons.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_commas.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_comments_indentation.py Add rule: truthy, to forbid truthy values that are not quoted 2016-10-01 09:03:59 +02:00
test_comments.py fix(rules): Use true/false, not yes/no 2016-11-18 12:02:02 +01:00
test_common.py parser: Iterate over lines + tokens + comments 2016-06-27 17:47:13 +02:00
test_document_end.py fix(rules): Use true/false, not yes/no 2016-11-18 12:02:02 +01:00
test_document_start.py fix(rules): Use true/false, not yes/no 2016-11-18 12:02:02 +01:00
test_empty_lines.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_hyphens.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_indentation.py Fix indentation rule for key following empty list 2017-10-16 22:17:58 +02:00
test_key_duplicates.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00
test_line_length.py fix(rules): Use true/false, not yes/no 2016-11-18 12:02:02 +01:00
test_new_line_at_end_of_file.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00
test_new_lines.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_trailing_spaces.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00
test_truthy.py feat(truthy): Allow explicit types 2016-10-02 08:15:53 +02:00