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>
This commit is contained in:
Arnaud Pouliquen
2022-04-11 09:20:37 +02:00
committed by Arnaud Pouliquen
parent 78acf765c5
commit cf04377c79
3 changed files with 27 additions and 4 deletions
+2 -1
View File
@@ -194,7 +194,8 @@ class CheckPatch(ComplianceTest):
diff = subprocess.Popen(('git', 'diff', COMMIT_RANGE),
stdout=subprocess.PIPE)
try:
subprocess.check_output(checkpatch + ' --mailback' + ' --no-tree' + ' -',
subprocess.check_output(checkpatch + ' --mailback' + ' --codespell' +
' --no-tree' + ' -',
stdin=diff.stdout,
stderr=subprocess.STDOUT,
shell=True, cwd=GIT_TOP)