diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-14 21:48:51 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-15 18:52:56 +0300 |
commit | a1f514305acc9ec8ea504004580ba2fad609bcd7 (patch) | |
tree | fe2dfe35f3fd9f9adb71c35042830cb813779f3e /run_project_tests.py | |
parent | 9b3671e711619505e9bd422cbc328c0078154bc9 (diff) | |
download | meson-tabkiller.tar.gz |
Kill tabs dead! For good!tabkiller
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 1385a78af..e390aaf86 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -636,10 +636,32 @@ def check_file(fname): linenum += 1 def check_format(): + check_suffixes = {'.c', + '.cpp', + '.cxx', + '.cc', + '.rs', + '.f90', + '.vala', + '.d', + '.s', + '.m', + '.mm', + '.asm', + '.java', + '.txt', + '.py', + '.swift', + '.build', + } for (root, _, files) in os.walk('.'): - for file in files: - if file.endswith('.py') or file.endswith('.build') or file == 'meson_options.txt': - fullname = os.path.join(root, file) + if '.dub' in root: # external deps are here + continue + for fname in files: + if os.path.splitext(fname)[1].lower() in check_suffixes: + if os.path.split(fname)[1] == 'sitemap.txt': + continue + fullname = os.path.join(root, fname) check_file(fullname) def check_meson_commands_work(): |