diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-06-03 12:03:13 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-06-03 12:03:13 -0400 |
commit | 6c8c0394093354490cf4badb4993fd91b0001836 (patch) | |
tree | 2032bc9097a0b85307af1548bd3bad9b9dbd3bc0 /python/tidy.py | |
parent | 9aa1d932828d15f6590816c638af1e3f451130a4 (diff) | |
download | servo-6c8c0394093354490cf4badb4993fd91b0001836.tar.gz servo-6c8c0394093354490cf4badb4993fd91b0001836.zip |
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.
Diffstat (limited to 'python/tidy.py')
-rw-r--r-- | python/tidy.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/python/tidy.py b/python/tidy.py index bfad1b43ea3..2fe531da4b3 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -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] |