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
2016-09-19 12:39:52 +01:00
..
__init__.py Initial commit 2016-01-14 10:46:14 +01:00
test_braces.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_brackets.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_colons.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_commas.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_comments_indentation.py parser: Iterate over lines + tokens + comments 2016-06-27 17:47:13 +02:00
test_comments.py feat(comments): Allow comments with multiple hash chars 2016-08-12 11:58:57 +02:00
test_common.py parser: Iterate over lines + tokens + comments 2016-06-27 17:47:13 +02:00
test_document_end.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_document_start.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_empty_lines.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_hyphens.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_indentation.py parser: Iterate over lines + tokens + comments 2016-06-27 17:47:13 +02:00
test_key_duplicates.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00
test_line_length.py line-length: Generalize ...-inline-mappings for corner cases 2016-09-19 12:39:52 +01:00
test_new_line_at_end_of_file.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00
test_new_lines.py Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_trailing_spaces.py Config: Allow 'enable' keyword for rules 2016-03-06 08:00:25 +01:00