Re: [PATCH] checkpatch: Add optional --codespell dictionary to find more typos
From: Joe Perches
Date: Thu Mar 05 2015 - 14:21:47 EST
On Thu, 2015-03-05 at 16:13 -0300, Lucas De Marchi wrote:
> On Thu, Mar 5, 2015 at 3:52 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> > If a codespell dictionary exists, use it if desired.
> > default is off, maybe it could be turned on later.
> >
> > codespell's dictionary format allows multiple possible corrections,
> > ignore that for now and only use the first suggestion.
>
> Most of them were particularly added to avoid wrong suggestions in
> kernel code base (admittedly a long time ago)...
> Wouldn't it be better to output the entire list of suggestions as
> codespell the tool does?
If you want to write the code, be my guest.
> I'm not a perl guru, but couldn't we have a single option like
> --codespell / --codespell=FILE ?
Not easily. There's no easy way to turn off codespell like that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/