qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] Add new build target 'check-spelling'


From: Philippe Mathieu-Daudé
Subject: Re: [RFC PATCH] Add new build target 'check-spelling'
Date: Mon, 31 Oct 2022 16:40:40 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0

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 <sw@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'?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]