servo: Merge #6274 - Run tidy everything in the tree, remove directory whitelist (from frewsxcv:tidy-all-the-things); r=metajack

After #6268 merged, I found out that everything in the tree currently
passes the tidy checker.

---------------

It is worth pointing out that I personally do not know if this is a feature wanted by others. Once I noticed everything was already tidy, I decided to open this PR to start the conversation (if any). I am not convinced this is really a Good Thing, so my feelings would not get hurt if this was closed immediately.

Source-Repo: https://github.com/servo/servo
Source-Revision: 055182dae1d895ba2422e3da85c20a9a64beea71
This commit is contained in:
Corey Farwell
2015-06-03 11:12:34 -05:00
parent 047a07ab93
commit fe64f1f685

View File

@@ -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]