Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

checkpatch.pl PR review

v6

checkpatch.pl PR review

check-square

checkpatch.pl PR review

Code review for PR using checkpatch.pl

Installation

Copy and paste the following snippet into your .yml file.

              

- name: checkpatch.pl PR review

uses: webispy/checkpatch-action@v6

Learn more about this action in webispy/checkpatch-action

Choose a version

Github action for checkpatch.pl

The checkpatch.pl is a perl script to verify that your code conforms to the Linux kernel coding style. This project uses checkpatch.pl to automatically review and leave comments on pull requests.

check

Action setup guide

Pull Request

.github/workflows/main.yml

name: checkpatch review
on: [pull_request]
jobs:
  my_review:
    name: checkpatch review
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Run checkpatch review
      uses: webispy/checkpatch-action@master

Due to the above limitations, you can check the comments directly in the console log.

console log

References

checkpatch tool

Following files are used to this project.

Patch

Add option for excluding directories

From zephyr project:

Disable warning for "No structs that should be const ..."

Docker image

You can find the Dockerfile from docker branch of this repository.

License

Since the checkpatch.pl file is a script in the Linux kernel source tree, you must follow the GPL-2.0 license, which is your kernel license.