OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
706 stars 288 forks source link

checkpatch: fix TYPO_SPELLING check for words with apostrophe #484

Closed arnopo closed 1 year ago

arnopo commented 1 year ago

Fix issue https://github.com/OpenAMP/open-amp/issues/483

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'?"

The PR is a cherry pick of from Linux kernel: https://lore.kernel.org/all/20201201190729.169733-1-dwaipayanray1@gmail.com/T/#u

arnopo commented 1 year ago

@tammyleino : I tested it on your PR https://github.com/OpenAMP/open-amp/pull/478 with following commands:

 wget https://github.com/OpenAMP/open-amp/pull/478.patch
 ./scripts/checkpatch.pl --codespell 478.patch

That fixes the false positive