diff options
author | Xavier Roumegue <xavier.roumegue@oss.nxp.com> | 2022-12-14 17:16:56 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-12-15 12:31:48 +0200 |
commit | 7ace78e2153485c49b6c6523269384932507982c (patch) | |
tree | 27df12448a1fc2877ae1c0710ff6a8c8f10aebee /utils/checkstyle.py | |
parent | 5a8271ad70fb30460aa0aefb85fbaca484fceb01 (diff) |
utils: checkstyle.py: Check new header file on new and renamed meson.build files
Declaration of new header file to the build system are only checked against
modified meson.build file. Therefore, this raises a false positive warning in
case the meson.build is added or renamed.
Add the new and renamed meson.build files to the list of files to check header
file inclusion.
Signed-off-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils/checkstyle.py')
-rwxr-xr-x | utils/checkstyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py index f0248d65..a11d95cc 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -313,7 +313,7 @@ class HeaderAddChecker(CommitChecker): def check(cls, commit, top_level): issues = [] - meson_files = [f for f in commit.files('M') + meson_files = [f for f in commit.files() if os.path.basename(f) == 'meson.build'] for filename in commit.files('AR'): |