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.
2020-09-26 11:12:26 +02:00
..
conf fix(default.yaml): disable empty-values & octal-values by default 2019-10-15 09:41:32 +02:00
rules Add 'forbid' configurations to the braces and brackets rules 2020-09-09 20:01:25 +02:00
__init__.py yamllint version 1.24.2 2020-07-16 09:35:08 +02:00
__main__.py Add __main__ 2017-03-21 16:00:58 +07:00
cli.py Auto-change output format if GitHub Actions detected 2020-09-23 15:41:25 +02:00
config.py Add global "locale" config option and make key-ordering rule locale-aware 2020-07-16 09:34:13 +02:00
linter.py directives: Fix DOS lines messing with rule IDs 2020-09-26 11:12:26 +02:00
parser.py fix(parser): Correctly handle DOS new lines in 'line' rules 2019-04-09 16:48:00 +02:00