mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-25 17:10:16 -06:00
512fe17047
Pound-signs followed by a lone CRLF should not raise if require-starting-space is specified. If require-starting-space is true, *and* either: - new-lines: disbale, or - newlines: type: dos is specified, a line with `#\r` or `#\r\n` should not raise a false positive. This commit also uses a Set for O(1) membership testing and uses the correct escape sequence for the nul byte. If we find a CRLF when looking for Unix newlines, yamllint should always raise, regardless of logic with require-starting-space. Closes: Issue #171. |
||
---|---|---|
.. | ||
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 |