mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-22 07:36:25 -06:00
027d1b0a9a
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. |
||
---|---|---|
.. | ||
rules | ||
yaml-1.2-spec-examples | ||
__init__.py | ||
common.py | ||
test_cli.py | ||
test_config.py | ||
test_linter.py | ||
test_module.py | ||
test_parser.py | ||
test_spec_examples.py | ||
test_syntax_errors.py | ||
test_yamllint_directives.py |