diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-02-12 13:00:19 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-02-16 12:30:39 +0200 |
commit | 0e2ca7256bbd6b042d10061c3bce50b669eb9fb7 (patch) | |
tree | 672509f62ae23a59864011b6d7948ff7a5141f10 | |
parent | d86d9592a1765d66f5e2a5d0bba7ed1490e742e0 (diff) |
utils: checkstyle.py: Handle renamed files in header add checker
The header add checker only handles added header, which makes it miss
issues when a header is renamed. Fix it.
Fixes: 8fffab46b80f ("utils: checkstyle.py: Add header add checker")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-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 93a4fc70..ececb46e 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -314,7 +314,7 @@ class HeaderAddChecker(CommitChecker): meson_files = [f for f in commit.files('M') if os.path.basename(f) == 'meson.build'] - for filename in commit.files('A'): + for filename in commit.files('AR'): if not filename.startswith('include/libcamera/') or \ not filename.endswith('.h'): continue |