diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2016-08-04 10:45:22 -0700 |
---|---|---|
committer | Vladimir Vukicevic <vladimir@pobox.com> | 2016-08-17 09:51:02 -0400 |
commit | 0aa5ad41975bf565edc42c1dfe0411efb8bfc79a (patch) | |
tree | 9b7630ec54cb281b7b9cb2822a1dc49e631551e0 /python/tidy/servo_tidy/tidy.py | |
parent | 0e328715918d509dcaad719d974b85cf7519c285 (diff) | |
download | servo-0aa5ad41975bf565edc42c1dfe0411efb8bfc79a.tar.gz servo-0aa5ad41975bf565edc42c1dfe0411efb8bfc79a.zip |
Don't enforce line length in Cargo.toml files
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index d6d6344db54..8d989303b05 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -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 |