Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: move checkpatch to its own job and add some exceptions #61

Merged
merged 2 commits into from
May 23, 2022

Conversation

willfindlay
Copy link
Contributor

Best reviewed by commit.

The checkpatch lints are often overly aggressive and we like to ignore them when
necessary. However, doing so might mean we miss other important lints from that
static-checks job. Let's move checkpatch.pl to its own job to fix this.

Another reason for this change is that checkpatch.pl is not a static check per se. Rather,
it checks individual commits for correctness.

Signed-off-by: William Findlay <[email protected]>
Let's ignore PREFER_DEFINED_ATTRIBUTE_MACRO and C99_COMMENTS in checkpatch.pl.
We use __attribute__((always_inline)) all over our codebase and C99_COMMENTS issues
false positives for spdx license identifiers.

Both of these should be considered false positives, so just ignore them.

Signed-off-by: William Findlay <[email protected]>
@michi-covalent michi-covalent merged commit eaf9701 into cilium:main May 23, 2022
@willfindlay willfindlay deleted the pr/willfindlay/fix-ci branch May 23, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants