Skip to content

Commit

Permalink
.github/workflows: run Checkpatch on git revisions
Browse files Browse the repository at this point in the history
When running on diff, Checkpatch ignores `Checkpatch-ignore` directives
in the commit message.

Change-Id: Ib296d5e972408973fb381fafc51f59569a01d1f0
Signed-off-by: Evgeniy Naydanov <[email protected]>
  • Loading branch information
en-sc committed Jun 5, 2024
1 parent ca97737 commit 8c4dcc3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ jobs:
sudo apt-get install patchutils python3-ply python3-git
- name: Run checkpatch
run: |
git diff --patch FETCH_HEAD \
| filterdiff \
-x "a/src/jtag/drivers/libjaylink/*" \
-x "a/tools/git2cl/*" \
-x "a/.github/*" \
-x "a/HACKING" \
| ./tools/scripts/checkpatch.pl --no-signoff -
./tools/scripts/checkpatch.pl --no-signoff --git FETCH_HEAD..HEAD

0 comments on commit 8c4dcc3

Please sign in to comment.