workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND v2 0/2] checkpatch: Add support for checkpatch-ignore note
@ 2025-02-17 17:32 Brendan Jackman
  2025-02-17 17:32 ` [PATCH RESEND v2 1/2] checkpatch: Add support for checkpatch-ignore notes Brendan Jackman
  2025-02-17 17:32 ` [PATCH RESEND v2 2/2] docs: checkpatch: Document checkpatch-ignore feature Brendan Jackman
  0 siblings, 2 replies; 3+ messages in thread
From: Brendan Jackman @ 2025-02-17 17:32 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn,
	Jonathan Corbet, Konstantin Ryabitsev
  Cc: linux-kernel, workflows, linux-doc, Brendan Jackman

Checkpatch sometimes has false positives. This makes it less useful for
automatic usage: tools like b4 [0] can run checkpatch on all of your
patches and give you a quick overview. When iterating on a branch, it's
tiresome to manually re-check that any errors are known false positives.

This patch adds a feature to record in the patch "graveyard" (after the
"---" that a patch might produce a certain checkpatch error, and that
this is an expected false positive.

Note, for Git users this will require some configuration changes to
adopt (see documentation patch), and not all tools that wrap Checkpatch
will automatically be able to take advantage. Changes are required for
`b4 prep --check` to work [0], I'll send that separately if this patch
is accepted.

[0] https://github.com/bjackman/b4/tree/checkpatch-ignore

Signed-off-by: Brendan Jackman <jackmanb@google.com>
---
Changes in v2:
- Switched to the "graveyard" instead of the actual commit message.
- Link to v1: https://lore.kernel.org/r/20250113-checkpatch-ignore-v1-0-63a7a740f568@google.com

---
Brendan Jackman (2):
      checkpatch: Add support for checkpatch-ignore notes
      docs: checkpatch: Document checkpatch-ignore feature

 Documentation/dev-tools/checkpatch.rst | 46 ++++++++++++++++++++++++++++++++++
 scripts/checkpatch.pl                  | 34 +++++++++++++++++++++++--
 2 files changed, 78 insertions(+), 2 deletions(-)
---
base-commit: 619f0b6fad524f08d493a98d55bac9ab8895e3a6
change-id: 20250113-checkpatch-ignore-1096914844eb

Best regards,
-- 
Brendan Jackman <jackmanb@google.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-17 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 17:32 [PATCH RESEND v2 0/2] checkpatch: Add support for checkpatch-ignore note Brendan Jackman
2025-02-17 17:32 ` [PATCH RESEND v2 1/2] checkpatch: Add support for checkpatch-ignore notes Brendan Jackman
2025-02-17 17:32 ` [PATCH RESEND v2 2/2] docs: checkpatch: Document checkpatch-ignore feature Brendan Jackman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).