]> git.droids-corp.org - dpdk.git/blobdiff - devtools/check-meson.py
net/mlx5: fix split buffer Rx
[dpdk.git] / devtools / check-meson.py
index 29f7887968143a38ba215e3e73607298dbfca8e6..4b2338828dbf8f56d67cda196f4356eeaebfc25d 100755 (executable)
@@ -8,6 +8,7 @@ A Python script to run some checks on meson.build files in DPDK
 
 import sys
 import os
+import re
 from os.path import relpath, join
 from argparse import ArgumentParser
 
@@ -50,6 +51,8 @@ def check_indentation(filename, contents):
         code, comments = split_code_comments(line)
         if not code.strip():
             continue
+        if re.match('^ *\t', code):
+            print(f'Error parsing {filename}:{lineno}, got some tabulation')
         if code.endswith('files('):
             if infiles:
                 raise(f'Error parsing {filename}:{lineno}, got "files(" when already parsing files list')