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.
yamllint/tests/rules
Adrien Vergé d3cd8ba332 line-length: Generalize ...-inline-mappings for corner cases
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
8 years ago
..
__init__.py Initial commit 9 years ago
test_braces.py Tests: Reorganize common and global tests 9 years ago
test_brackets.py Tests: Reorganize common and global tests 9 years ago
test_colons.py Tests: Reorganize common and global tests 9 years ago
test_commas.py Tests: Reorganize common and global tests 9 years ago
test_comments.py feat(comments): Allow comments with multiple hash chars 9 years ago
test_comments_indentation.py parser: Iterate over lines + tokens + comments 9 years ago
test_common.py parser: Iterate over lines + tokens + comments 9 years ago
test_document_end.py Tests: Reorganize common and global tests 9 years ago
test_document_start.py Tests: Reorganize common and global tests 9 years ago
test_empty_lines.py Tests: Reorganize common and global tests 9 years ago
test_hyphens.py Tests: Reorganize common and global tests 9 years ago
test_indentation.py parser: Iterate over lines + tokens + comments 9 years ago
test_key_duplicates.py Config: Allow 'enable' keyword for rules 9 years ago
test_line_length.py line-length: Generalize ...-inline-mappings for corner cases 8 years ago
test_new_line_at_end_of_file.py Config: Allow 'enable' keyword for rules 9 years ago
test_new_lines.py Tests: Reorganize common and global tests 9 years ago
test_trailing_spaces.py Config: Allow 'enable' keyword for rules 9 years ago