4 Commits

Author SHA1 Message Date
Dwaipayan Ray
05bcc7dd74 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>
2023-04-20 13:26:52 +02:00
Arnaud Pouliquen
cf04377c79 CI: add codespell support to check typos
Enable the use of codespell tool in checkpatch.pl
For this the checkpatch.pl as been partially rebased on the Linux one.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-04-11 09:20:37 +02:00
Luz Paz
210b9ec37a Fix various typos
Found via `codespell -q 3 -S ./scripts/spelling.txt`

Signed-off-by: luz paz <luzpaz@users.noreply.github.com>
2022-01-04 10:05:40 +01:00
Arnaud Pouliquen
2de2e14bda scripts: add checkpatch tool
Initial version of checkpatch tool cloned from zephyr project.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-04-08 17:07:02 +02:00