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
Mathieu Couette 027d1b0a9a
directives: Fix DOS lines messing with rule IDs
Fixes #325

The linter allows a directive to contain trailing whitespace characters like
\r, but does not trim them before iterating on the rules. As a result, the last
rule in the list contains the trailing whitespace characters and never matches
any existing rule.

I added the necessary trimming, as well as a test with 2 checks to go along
with it.
4 years ago
..
conf fix(default.yaml): disable `empty-values` & `octal-values` by default 5 years ago
rules Add 'forbid' configurations to the braces and brackets rules 4 years ago
__init__.py yamllint version 1.24.2 5 years ago
__main__.py Add __main__ 8 years ago
cli.py Auto-change output format if GitHub Actions detected 4 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 4 years ago
parser.py fix(parser): Correctly handle DOS new lines in 'line' rules 6 years ago