On 31/10/22 08:43, Stefan Weil via wrote:
`make check-spelling` can now be used to get a list of spelling errors.
It uses the latest version of codespell, a spell checker implemented in Python.
Signed-off-by: Stefan Weil <s...@weilnetz.de>
---
This RFC can already be used for manual tests, but still reports false
positives, mostly because some variable names are interpreted as words.
These words can either be ignored in the check, or in some cases the code
might be changed to use different variable names.
The check currently only skips a few directories and files, so for example
checked out submodules are also checked.
The rule can be extended to allow user provided ignore and skip lists,
for example by introducing Makefile variables CODESPELL_SKIP=userfile
or CODESPELL_IGNORE=userfile. A limited check could be implemented by
providing a base directory CODESPELL_START=basedirectory, for example
CODESPELL_START=docs.
Regards,
Stefan
tests/Makefile.include | 10 ++++++++++
tests/codespell/README.rst | 18 ++++++++++++++++++
tests/codespell/exclude-file | 3 +++
tests/codespell/ignore-words | 19 +++++++++++++++++++
tests/requirements.txt | 1 +
5 files changed, 51 insertions(+)
create mode 100644 tests/codespell/README.rst
create mode 100644 tests/codespell/exclude-file
create mode 100644 tests/codespell/ignore-words
Just wondering about this list...
+++ b/tests/codespell/ignore-words
@@ -0,0 +1,19 @@
+buid
What is 'buid'? PPC-specific apparently.
+busses
+dout
+falt
+fpr
+hace
+hax
+hda
+nd
Apparently 'NIC info'...
+ot
Is 'ot' MemOp?
+pard
+parm
+ptd
+ser
+som
+synopsys
+te
Is that 'target endianness'?
+toke
Where is 'toke'?
+ue
Where is 'ue'?