Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: 05bcc7dd74ab4800be8a12c8dfcad4f407bf30ac https://github.com/OpenAMP/libmetal/commit/05bcc7dd74ab4800be8a12c8dfcad4f40... Author: Dwaipayan Ray dwaipayanray1@gmail.com Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths: M scripts/checkpatch.pl
Log Message: ----------- checkpatch: fix TYPO_SPELLING check for words with apostrophe
checkpatch reports a false TYPO_SPELLING warning for some words containing an apostrophe when run with --codespell option.
A false positive is "doesn't". Occurrence of the word causes checkpatch to emit the following warning:
"WARNING: 'doesn'' may be misspelled - perhaps 'doesn't'?"
Modify the regex pattern to be more in line with the codespell default word matching regex. This fixes the word capture and avoids the false warning.
In addition, highlight the misspelled word location by adding a caret below the word.
Signed-off-by: Dwaipayan Ray dwaipayanray1@gmail.com Suggested-by: Joe Perches joe@perches.com Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com