mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-25 18:55:20 -06:00
This commit refactors the `allow-non-breakable-inline-mappings` logic to use YAML tokens and avoid crashes or erroneous reports on cases like: ```yaml - {a: "http://localhost/very/very/very/very/very/very/long/url" } ``` ```yaml dict: {a: long long long long long long long, b: nospace} ``` ```yaml - long_line: http://localhost/very/very/long/url ``` ```yaml long_line: and+some+space+at+the+end <-- extra spaces ``` For reference see: https://github.com/adrienverge/yamllint/pull/17#issuecomment-247805799 |
||
---|---|---|
.. | ||
rules | ||
yaml-1.2-spec-examples | ||
__init__.py | ||
common.py | ||
test_cli.py | ||
test_config.py | ||
test_linter.py | ||
test_parser.py | ||
test_spec_examples.py | ||
test_syntax_errors.py | ||
test_yamllint_directives.py |