.github/workflows: Use checkpatch scripts

Inroduce several checkpatch scripts to use in workflows.
This commit is contained in:
Gleb Chesnokov
2024-11-07 13:21:25 +03:00
parent fca4d58822
commit 31eca7eced
6 changed files with 75 additions and 55 deletions
+1 -17
View File
@@ -29,20 +29,4 @@ jobs:
- name: Run checkpatch.pl
run: |
ignore=(
MISSING_SIGN_OFF
EMAIL_SUBJECT
UNKNOWN_COMMIT_ID
NO_AUTHOR_SIGN_OFF
COMMIT_LOG_USE_LINK
BAD_REPORTED_BY_LINK
FILE_PATH_CHANGES
SPDX_LICENSE_TAG
LINUX_VERSION_CODE
CONSTANT_COMPARISON
NEW_TYPEDEFS
SPACING
)
ignore_str=${ignore[*]}
git format-patch -1 --stdout | ./checkpatch.pl --no-tree --show-types --strict --ignore="${ignore_str// /,}" -
git format-patch -1 --stdout | CHECKPATCH_PATH=. ./scripts/checkpatch