Skip to content

RFC scripts/checkpatch: Add code spelling check

Zhao Liu qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scripts/checkpatch: Check common spelling be defaultscripts/checkpatch.pl scripts/spelling.txt+1757 -02 replies
2/3scripts/checkpatch: Add --codespell and --codespellfile optionsscripts/checkpatch.pl+65 -10 replies
3/3scripts/spelling: Add common spelling mistakes in default spelling.txtscripts/spelling.txt+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] scripts/checkpatch: Add code spelling check

From: Zhao Liu <[email protected]>

Inspired by Linux's spelling check, QEMU could also add the similar support in checkpatch.pl to help ease the burden on trivial's maintainers ;-).

QEMU's checkpatch.pl is mainly based on an older version of Linux's checkpatch.pl, so this RFC ports Linux's codespell-related functionality to QEMU.

This RFC contains mainly the following work:
* Added default typo dictionary "selling.text". When using checkpatch.pl, it will be based on selling.txt for typo checking.
* Added "--codespell" and "--codespellfile" options for enhanced spell checking. The former will use either the system dictionary or a python dictionary for spell checking, while the latter allows the user to use a customized dictionary.
* Based on the QEMU typo statistics from v7.0.0 to v8.2.0-rc2, updated the default dictionary "selling.txt" to be more in line with QEMU developers' "typo habits".

Thanks and Best Regards,
Zhao
---
Zhao Liu (3):
scripts/checkpatch: Check common spelling be default scripts/checkpatch: Add --codespell and --codespellfile options scripts/spelling: Add common spelling mistakes in default spelling.txt

 scripts/checkpatch.pl |  110 ++-
 scripts/spelling.txt  | 1729 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 1838 insertions(+), 1 deletion(-)
 create mode 100644 scripts/spelling.txt
Signature · 1 line
2.34.1