Finding typos using codespell
Ulrich Spörlein
uqs at spoerlein.net
Tue Apr 19 12:22:12 UTC 2011
On Tue, 19.04.2011 at 12:15:00 +0100, Bruce Cran wrote:
> There's a new tool that can be used to find spelling mistakes in code: codespell
> from http://www.politreco.com has already been used to find mistakes in both
> Linux and LLVM. I ran it on sys/ and it found lots of potential typos - the
> full diff (which I know does contain some incorrect changes) can be found at
> http://www.cran.org.uk/~brucec/freebsd/codespell_sys.diff .
Needs manual review, but I think this is very useful for the spelling
nazi challenged among us :-)
False positive, e.g.:
{
- struct ccb_immed_notify *inot;
+ struct ccb_immed_notify *into;
mpt_tgt_state_t *tgt;
Cheers,
Uli
More information about the freebsd-current
mailing list