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/yamllint/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
9 years ago
..
__init__.py Rules: Add the 'key-duplicates' rule 9 years ago
braces.py parser: Provide nextnext for token rules 9 years ago
brackets.py parser: Provide nextnext for token rules 9 years ago
colons.py parser: Provide nextnext for token rules 9 years ago
commas.py parser: Provide nextnext for token rules 9 years ago
comments.py feat(comments): Allow comments with multiple hash chars 9 years ago
comments_indentation.py parser: Iterate over lines + tokens + comments 9 years ago
common.py Rules: common: Remove dead code 9 years ago
document_end.py parser: Provide nextnext for token rules 9 years ago
document_start.py parser: Provide nextnext for token rules 9 years ago
empty_lines.py Fix typos 9 years ago
hyphens.py parser: Provide nextnext for token rules 9 years ago
indentation.py Rules: indentation: Remove non-existing case 9 years ago
key_duplicates.py parser: Provide nextnext for token rules 9 years ago
line_length.py line-length: Generalize ...-inline-mappings for corner cases 9 years ago
new_line_at_end_of_file.py Refactor project layout to import yamllint alone 9 years ago
new_lines.py Refactor project layout to import yamllint alone 9 years ago
trailing_spaces.py Refactor project layout to import yamllint alone 9 years ago