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

Adding C/C++ linter to CI #148

Merged
merged 23 commits into from
Jul 11, 2024
Merged

Adding C/C++ linter to CI #148

merged 23 commits into from
Jul 11, 2024

Conversation

ruck314
Copy link
Contributor

@ruck314 ruck314 commented Jul 6, 2024

Description

  • Improves the code quality by running the linter automatically for every commit via Github action

If an else has a brace on one side, it should have it on both  [readability/braces]
Almost always, snprintf is better than strcpy  [runtime/printf]
 Found C system header after other header. Should be: axis_gen1.h, c system, c++ system, other.  [build/include_order]
 linux/types.h already included at XXXX  [build/include]
[runtime/casting] is acceptable risk for this aximemorymap driver
Add #include <XXX> for YYY  [build/include_what_you_use]
@ruck314 ruck314 changed the base branch from main to pre-release July 6, 2024 02:04
Empty loop bodies should use {} or continue  [whitespace/empty_loop_body]
Line ends in whitespace.  Consider deleting these extra spaces.  [whitespace/end_of_line]
{ should almost always be at the end of the previous line  [whitespace/braces]
Redundant blank line at the start of a code block should be deleted.  [whitespace/blank_line]
Missing spaces around XXX  [whitespace/operators]
Extra space after ( in XXXX call  [whitespace/parens]
At least two spaces is best between code and comments  [whitespace/comments]
Missing space after ,  [whitespace/comma]
@ruck314 ruck314 mentioned this pull request Jul 6, 2024
Else clause should never be on same line as else (use 2 lines)  [whitespace/newline]
Do not use namespace using-directives.  Use using-declarations instead.  [build/namespaces]
@ruck314 ruck314 marked this pull request as ready for review July 6, 2024 18:43
@JJL772
Copy link
Member

JJL772 commented Jul 6, 2024 via email

@ruck314
Copy link
Contributor Author

ruck314 commented Jul 6, 2024

DMA Loopback using aes-stream-driver@ 4e1533d looks good
image

Copy link
Member

@JJL772 JJL772 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm always happy to see linter integration!

@ruck314 ruck314 merged commit 0778812 into pre-release Jul 11, 2024
3 checks passed
@ruck314 ruck314 deleted the cpplinter branch July 11, 2024 17:16
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