Check more manually-written text files: Objective-C sources, Meson
build files, templates, JSON, plain text, and property lists. The
generic text checks apply to these formats.
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
---
Changes in v4:
- Dropped ".hx" from the checked file suffixes because .hx files contain
intentional trailing whitespace. See commit 09ce5f2d6bd6
("qemu-options.hx: Fix up the autogenerated rST") for the context.
(Peter Maydell)
- Expanded the patch message to explain why the newly covered file types
are suitable for generic text checks.
- Link to v3: https://lore.kernel.org/qemu-devel/20260604-checkpatch-v3-1-23fc7b12a7e4@rsg.ci.i.u-tokyo.ac.jp
Changes in v3:
- Rebased.
- Link to v2: https://lore.kernel.org/r/20250111-checkpatch-v2-1-db77a522ab6a@daynix.com
To: qemu-devel@nongnu.org
Cc: Chao Liu <chao.liu.zevorn@gmail.com>
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 03f35e75012c..3d37e21fb79e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -12,7 +12,8 @@ use Term::ANSIColor qw(:constants);
my $P = $0;
$P =~ s@.*/@@g;
-our $SrcFile = qr{\.(?:(h|c)(\.inc)?|cpp|s|S|pl|py|sh)$};
+our $SrcFile =
+ qr{\.(?:(h|c|m)(\.inc)?|cpp|s|S|pl|py|sh|build|in|json|plist|txt)$};
my $V = '0.31';
---
base-commit: b83371668192a705b878e909c5ae9c1233cbd5fb
change-id: 20250111-checkpatch-26ea9d86c76a
Best regards,
--
Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>