.github/workflows: Use checkpatch scripts

Inroduce several checkpatch scripts to use in workflows.
This commit is contained in:
Gleb Chesnokov
2024-11-07 12:49:54 +03:00
parent fca4d58822
commit 31eca7eced
6 changed files with 75 additions and 55 deletions

13
scripts/checkpatch_diff Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
rootdir=$(readlink -f $(dirname $0)/..)
scriptsdir=${rootdir}/scripts
base_commit=${1:-master}
err=0
(cd ${rootdir} && git diff ${base_commit} | ${scriptsdir}/checkpatch -) || err=1
exit $err