]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add optional --codespell dictionary to find more typos
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:14 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:57 +0000 (09:03 -0400)
commit71678dbf6890e81d43cf0e81a244b7a690d96443
treee09f52d053ce8c8d2695966b081de97ae42f83b1
parent7dfd956939aa2cf00c2372c3d544fd950a9bf44d
checkpatch: add optional --codespell dictionary to find more typos

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.

Also add \b to spelling test so that consecutive misspelled words
are found properly.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Masanari Iida <standby24x7@gmail.com>
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl