mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Run tidy everything in the tree, remove directory whitelist
After #6268 merged, I found out that everything in the tree currently passes the tidy checker.
This commit is contained in:
parent
9aa1d93282
commit
6c8c039409
1 changed files with 7 additions and 3 deletions
|
@ -15,7 +15,6 @@ import itertools
|
|||
import re
|
||||
from licenseck import licenses
|
||||
|
||||
directories_to_check = ["ports", "components", "tests", "python"]
|
||||
filetypes_to_check = [".rs", ".rc", ".cpp", ".c", ".h", ".py"]
|
||||
reftest_directories = ["tests/ref"]
|
||||
reftest_filetype = ".list"
|
||||
|
@ -40,10 +39,15 @@ ignored_files = [
|
|||
|
||||
# MIT license
|
||||
"components/util/deque/mod.rs",
|
||||
|
||||
# Hidden files/directories
|
||||
".*",
|
||||
]
|
||||
|
||||
|
||||
def collect_file_names(top_directories):
|
||||
def collect_file_names(top_directories=None):
|
||||
if top_directories is None:
|
||||
top_directories = os.listdir(".")
|
||||
for top_directory in top_directories:
|
||||
for dirname, dirs, files in os.walk(top_directory):
|
||||
for basename in files:
|
||||
|
@ -142,7 +146,7 @@ def get_reftest_names(line):
|
|||
|
||||
|
||||
def scan():
|
||||
all_files = collect_file_names(directories_to_check)
|
||||
all_files = collect_file_names()
|
||||
files_to_check = filter(should_check, all_files)
|
||||
|
||||
checking_functions = [check_license, check_by_line]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue