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
Rusty Geldmacher ee4d163ff8
Allow only non-empty brackets/braces
We'd like to disallow brackets and braces in our YAML, but there's a
catch: the only way to describe an empty array or hash in YAML is to
supply an empty one (`[]` or `{}`). Otherwise, the value will be null.

This commit adds a `non-empty` option to `forbid` for brackets and
braces. When it is set, all flow and sequence mappings will cause errors
_except_ for empty ones.
4 years ago
..
conf fix(default.yaml): disable `empty-values` & `octal-values` by default 6 years ago
rules Allow only non-empty brackets/braces 4 years ago
__init__.py yamllint version 1.25.0 5 years ago
__main__.py Add __main__ 8 years ago
cli.py Auto-change output format if GitHub Actions detected 5 years ago
config.py Add global "locale" config option and make key-ordering rule locale-aware 5 years ago
linter.py directives: Fix DOS lines messing with rule IDs 5 years ago
parser.py fix(parser): Correctly handle DOS new lines in 'line' rules 6 years ago