diff options
author | Siddhartha Mishra <sidm1999@gmail.com> | 2019-09-21 13:05:05 +0530 |
---|---|---|
committer | Siddhartha Mishra <sidm1999@gmail.com> | 2019-09-22 14:08:06 +0530 |
commit | 3ced8d4ddcc7328e27231f9db9ce2f441b01d37e (patch) | |
tree | 7c80fcdeb861b98818e080437edf190eaa4bec69 /python/tidy/servo_tidy | |
parent | 4fe8238b14d535f7ca94a36effda06624b73ecbe (diff) | |
download | servo-3ced8d4ddcc7328e27231f9db9ce2f441b01d37e.tar.gz servo-3ced8d4ddcc7328e27231f9db9ce2f441b01d37e.zip |
have tidy always check Cargo.lock
Diffstat (limited to 'python/tidy/servo_tidy')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 46da89d3907..1477fe188ab 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -65,7 +65,7 @@ COMMENTS = ["// ", "# ", " *", "/* "] # File patterns to include in the non-WPT tidy check. FILE_PATTERNS_TO_CHECK = ["*.rs", "*.rc", "*.cpp", "*.c", - "*.h", "Cargo.lock", "*.py", "*.sh", + "*.h", "*.py", "*.sh", "*.toml", "*.webidl", "*.json", "*.html", "*.yml"] @@ -193,6 +193,9 @@ def filter_file(file_name): def filter_files(start_dir, only_changed_files, progress): file_iter = FileList(start_dir, only_changed_files=only_changed_files, exclude_dirs=config["ignore"]["directories"], progress=progress) + # always yield Cargo.lock so that the correctness of transitive dependacies is checked + yield "./Cargo.lock" + for file_name in file_iter: base_name = os.path.basename(file_name) if not any(fnmatch.fnmatch(base_name, pattern) for pattern in FILE_PATTERNS_TO_CHECK): |