diff options
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 1385a78..e390aaf 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(): |