From 0e2ca7256bbd6b042d10061c3bce50b669eb9fb7 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 12 Feb 2021 13:00:19 +0200 Subject: 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 Reviewed-by: Kieran Bingham --- utils/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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 -- cgit v1.2.1