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/yamllint
Tim Wade c7845b5bc2
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.
8 years ago
..
conf Rules: Add min-spaces-inside-empty and max-spaces-inside-empty 8 years ago
rules Fix indentation rule for key following empty list 8 years ago
__init__.py yamllint version 1.8.1 8 years ago
__main__.py Add __main__ 8 years ago
cli.py style(cli): Space import sections 8 years ago
config.py fix(config): Be clearer about the `ignore` conf type 8 years ago
linter.py feat(config): Add support to ignore paths on per-rule basis 8 years ago
parser.py linter: Fix UnicodeError when parsing comments 9 years ago