yamllint/tests
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
..
rules Add 'forbid' configurations to the braces and brackets rules 2020-09-09 20:01:25 +02:00
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 2016-02-01 23:27:49 +01:00
__init__.py Tests: Run with LC_ALL=C for uniform tests 2016-06-28 11:04:50 +02:00
common.py CI: Add build environment without UTF-8 locales to travis-ci 2020-07-20 13:57:06 +02:00
test_cli.py Auto-change output format if GitHub Actions detected 2020-09-23 15:41:25 +02:00
test_config.py feat: Lint .yamllint by default 2019-08-26 10:01:40 +02:00
test_linter.py Drop support for EOL Python 2.6 2018-11-26 19:09:47 +01:00
test_module.py Drop support for EOL Python 2.6 2018-11-26 19:09:47 +01:00
test_parser.py Upgrade unit tests to use more useful asserts 2018-11-26 19:09:47 +01:00
test_spec_examples.py Remove redundant parentheses 2018-11-26 19:09:47 +01:00
test_syntax_errors.py Rules: indentation: Handle sets 2016-02-01 17:52:46 +01:00
test_yamllint_directives.py directives: Fix DOS lines messing with rule IDs 2020-09-26 11:12:26 +02:00