From: Stefan Weil <sw@weilnetz.de>
To: "Andreas Färber" <afaerber@suse.de>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/6] Add spelling exceptions for codespell
Date: Sat, 10 Dec 2011 10:39:54 +0100 [thread overview]
Message-ID: <4EE328EA.6030308@weilnetz.de> (raw)
In-Reply-To: <4EE2ACB3.1000704@suse.de>
Am 10.12.2011 01:49, schrieb Andreas Färber:
> Am 10.12.2011 00:19, schrieb Stefan Weil:
>> This file can be used with codespell to suppress wrong
>> misspelling reports.
>>
>> Signed-off-by: Stefan Weil <sw@weilnetz.de>
>> ---
>> scripts/codespell.exclude | 215
>> +++++++++++++++++++++++++++++++++++++++++++++
>> 1 files changed, 215 insertions(+), 0 deletions(-)
>> create mode 100644 scripts/codespell.exclude
>>
>> diff --git a/scripts/codespell.exclude b/scripts/codespell.exclude
>> new file mode 100644
>> index 0000000..d69c946
>> --- /dev/null
>> +++ b/scripts/codespell.exclude
>> @@ -0,0 +1,215 @@
>> + .rela.bss : { *(.rela.bss) }
>> + .rela.bss : { *(.rela.bss) }
> [...]
>
> I don't like this.
>
> Instead I suggest to keep a word list (that isn't whitespace-sensitive)
> and to generate the .exclude file via shell script (grep -r) on the fly.
>
> Andreas
grep -w. The solution which you suggest would need a list of filenames
and words because those words are only accepted in the given files.
The resulting exception list would also suppress real misspellings
of the given words in the given files which is not what we want.
If this seems acceptable, the exception list can be created using
a small shell script.
I don't say that an exception list is a nice solution (I also don't like
it),
but that's the way codespell works with the Linux kernel code, too.
Yes, the list is whitespace sensitive, but even if whitespace of the
affected
lines is changed, that's not a big problem. You will get some false
misspelling reports and either ignore them or update the exception list.
We could also change the code to reduce the need for spelling exceptions.
Renaming the variable aSign (which is reported as misspelling of assign)
would reduce the exception list a lot.
Regards,
Stefan
next prev parent reply other threads:[~2011-12-10 9:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 23:19 [Qemu-devel] [PATCH 0/6] New fixes for some misspellings Stefan Weil
2011-12-09 23:19 ` [Qemu-devel] [PATCH 1/6] Add spelling exceptions for codespell Stefan Weil
2011-12-10 0:49 ` Andreas Färber
2011-12-10 9:39 ` Stefan Weil [this message]
2011-12-09 23:19 ` [Qemu-devel] [PATCH 2/6] fmopl: Fix spelling in code and comments Stefan Weil
2011-12-09 23:19 ` [Qemu-devel] [PATCH 3/6] hw: Fix spelling (licenced->licensed) Stefan Weil
2011-12-09 23:19 ` [Qemu-devel] [PATCH 4/6] hw: Fix spelling in comments Stefan Weil
2011-12-09 23:19 ` [Qemu-devel] [PATCH 5/6] hw: Fix spelling in comments and code Stefan Weil
2011-12-09 23:19 ` [Qemu-devel] [PATCH 6/6] Fix spelling in comments, documentation and messages Stefan Weil
2011-12-14 11:11 ` [Qemu-devel] [Qemu-trivial] [PATCH 0/6] New fixes for some misspellings Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE328EA.6030308@weilnetz.de \
--to=sw@weilnetz.de \
--cc=afaerber@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).