]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
workflows/ci: add checkpatch action
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 5 Aug 2023 07:07:47 +0000 (12:37 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 7 Aug 2023 15:25:35 +0000 (09:25 -0600)
commite07e8326bf110186d56833ed2ad5a63b84ceb679
tree42b20f292b00dcfbcc07f06a0007aeed80cd17b3
parentb79df0052565022f9f44eb8c963ca04baa43d3af
workflows/ci: add checkpatch action

Add checkpatch action from https://github.com/webispy/checkpatch-action
to workflow CI, this project uses the Linux kernel tree's checkpatch.pl
to review the Pull Request, C code changes for the coding style issues.

We try to follow the coding standards that of the Linux Kernel, with some
exceptions recorded in the .checkpatch.conf file, asking checkpatch.pl
to ignore those. Integrating this action will make every change
complaint with Linux Kernel coding standards. As per their GitHub page
[1] the project uses GPL-2.0 license.

[1] https://github.com/webispy/checkpatch-action#license

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
TJH: Since the action requires info embedded in the Github pull request,
     only run it on pull requests.  Don't run it on pushes as it will
     produce a false positive
.github/workflows/continuous-integration.yml