You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|
9 years ago | |
|---|---|---|
| .. | ||
| __init__.py | 10 years ago | |
| test_braces.py | 10 years ago | |
| test_brackets.py | 10 years ago | |
| test_colons.py | 10 years ago | |
| test_commas.py | 10 years ago | |
| test_comments.py | 9 years ago | |
| test_comments_indentation.py | 9 years ago | |
| test_common.py | 9 years ago | |
| test_document_end.py | 10 years ago | |
| test_document_start.py | 10 years ago | |
| test_empty_lines.py | 10 years ago | |
| test_hyphens.py | 10 years ago | |
| test_indentation.py | 9 years ago | |
| test_key_duplicates.py | 10 years ago | |
| test_line_length.py | 9 years ago | |
| test_new_line_at_end_of_file.py | 10 years ago | |
| test_new_lines.py | 10 years ago | |
| test_trailing_spaces.py | 10 years ago | |