X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=devtools%2Fcheck-meson.py;h=4b2338828dbf8f56d67cda196f4356eeaebfc25d;hb=d7e5d5a7e54a8fd4e031c4825bed35aa505e2417;hp=29f7887968143a38ba215e3e73607298dbfca8e6;hpb=1ba12b75097706e834df71db77e0bb760dead760;p=dpdk.git diff --git a/devtools/check-meson.py b/devtools/check-meson.py index 29f7887968..4b2338828d 100755 --- a/devtools/check-meson.py +++ b/devtools/check-meson.py @@ -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')