Contribute/SpellCheck

From QEMU
Revision as of 14:20, 30 June 2025 by Sean (talk | contribs) (deprecate old way for codespell (2011), using checkpatch.pl (2024) now. For admin: considering delete this page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

checkpatch

Since 2024, we added codespell checking to scripts/checkpatch.pl.

You can also refer to the previous way:

codespell

QEMU uses British or American English in code and documentation. There are some typical spelling bugs which can be easily avoided by using tools like codespell.

codespell is a python script which detects (and optionally fixes) the most common spelling bugs.

If you installed codespell in your HOME directory, it can be called from the QEMU source directory like this:

~/bin/codespell.py -d -r -s -x scripts/codespell.exclude -q 2 ~/share/codespell/dictionary.txt .

-x scripts/codespell.exclude excludes some known lines from the check and needs a file which is not yet committed.

External Links