Merge pull request #815 from Kamoppl/kamilg/add_checkpatch
github-actions: add checkpatch
This commit is contained in:
commit
fba384d23f
18
.checkpatch.conf
Normal file
18
.checkpatch.conf
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--max-line-length=80
|
||||||
|
--no-tree
|
||||||
|
|
||||||
|
--ignore AVOID_BUG
|
||||||
|
--ignore COMMIT_MESSAGE
|
||||||
|
--ignore FILE_PATH_CHANGES
|
||||||
|
--ignore PREFER_PR_LEVEL
|
||||||
|
--ignore SPDX_LICENSE_TAG
|
||||||
|
--ignore SPLIT_STRING
|
||||||
|
|
||||||
|
--exclude .github
|
||||||
|
--exclude doc
|
||||||
|
--exclude tests
|
||||||
|
--exclude .pep8speaks.yml
|
||||||
|
--exclude LICENSE
|
||||||
|
--exclude Makefile
|
||||||
|
--exclude README.md
|
||||||
|
--exclude codecov.yml
|
15
.github/workflows/checkpatch.yml
vendored
Normal file
15
.github/workflows/checkpatch.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: checkpatch review
|
||||||
|
on: [pull_request]
|
||||||
|
jobs:
|
||||||
|
my_review:
|
||||||
|
name: checkpatch review
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 'Calculate PR commits + 1'
|
||||||
|
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
|
||||||
|
- name: Run checkpatch review
|
||||||
|
uses: webispy/checkpatch-action@v9
|
Loading…
Reference in New Issue
Block a user