Skip to content

Commit

Permalink
Don't enforce line length in Cargo.toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuk committed Aug 17, 2016
1 parent 0e32871 commit 0aa5ad4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tidy/servo_tidy/tidy.py
Expand Up @@ -202,8 +202,9 @@ def check_modeline(file_name, lines):


def check_length(file_name, idx, line):
if file_name.endswith(".lock") or file_name.endswith(".json") or file_name.endswith(".html"):
raise StopIteration
for suffix in [".lock", ".json", ".html", ".toml"]:
if file_name.endswith(suffix):
raise StopIteration
# Prefer shorter lines when shell scripting.
if file_name.endswith(".sh"):
max_length = 80
Expand Down

0 comments on commit 0aa5ad4

Please sign in to comment.