mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Don't enforce line length in Cargo.toml files
This commit is contained in:
parent
0e32871591
commit
0aa5ad4197
1 changed files with 3 additions and 2 deletions
|
@ -202,7 +202,8 @@ def check_modeline(file_name, lines):
|
||||||
|
|
||||||
|
|
||||||
def check_length(file_name, idx, line):
|
def check_length(file_name, idx, line):
|
||||||
if file_name.endswith(".lock") or file_name.endswith(".json") or file_name.endswith(".html"):
|
for suffix in [".lock", ".json", ".html", ".toml"]:
|
||||||
|
if file_name.endswith(suffix):
|
||||||
raise StopIteration
|
raise StopIteration
|
||||||
# Prefer shorter lines when shell scripting.
|
# Prefer shorter lines when shell scripting.
|
||||||
if file_name.endswith(".sh"):
|
if file_name.endswith(".sh"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue