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++ linter to CI #1012

Merged
merged 36 commits into from
Jul 10, 2024
Merged

Adding C++ linter to CI #1012

merged 36 commits into from
Jul 10, 2024

Conversation

ruck314
Copy link
Contributor

@ruck314 ruck314 commented Jun 28, 2024

Description

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

ruck314 added 30 commits June 28, 2024 08:32
Redundant blank line at the end of a code block should be deleted.  [whitespace/blank_line] [3]
If an else has a brace on one side, it should have it on both  [readability/braces]
Line contains only semicolon. If this should be an empty statement, use {} instead.  [whitespace/semicolon]
Multi-line string (...) found.  This lint script doesn't do well with such strings, and may give bogus warnings.  Use C++11 raw strings or concatenation instead.  [readability/multiline_string]
Missing space after ,  [whitespace/comma]
Weird number of spaces at line-start.  Are you using a 2-space indent?  [whitespace/indent]
public: should be indented +1 space inside class [whitespace/indent]
Weird number of spaces at line-start.  Are you using a 2-space indent?  [whitespace/indent]
At least two spaces is best between code and comments  [whitespace/comments]
Using C-style cast.  Use reinterpret_cast<void**>(...) instead  [readability/casting]
Redundant blank line at the start of a code block should be deleted.  [whitespace/blank_line]
Empty loop bodies should use {} or continue  [whitespace/empty_loop_body]
An else should appear on the same line as the preceding }  [whitespace/newline]
Extra space before ( in function call  [whitespace/parens]
Mismatching spaces inside () in if  [whitespace/parens]
Add #include <XXX> for XXX  [build/include_what_you_use]
Using C-style cast.  Use static_cast<XXXX>(...) instead  [readability/casting]
Never use XXXX. Use snprintf instead.  [runtime/printf]
Use operator XXX instead of YYY  [readability/alt_tokens]
Use int16/int64/etc, rather than the C type long  [runtime/int]
Extra space for operator  ++;  [whitespace/operators]
'sys/syscall.h' already included at ./src/rogue/Logging.cpp:27  [build/include]
ruck314 added 4 commits June 29, 2024 08:43
Storage-class specifier (static, extern, typedef, etc) should be at the beginning of the declaration.  [build/storage_class]
Single-parameter constructors should be marked explicit.  [runtime/explicit]
'virtual' is redundant since function is already declared as 'final'  [readability/inheritance]
Namespace should be terminated with '// namespace CRCPP'  [readability/namespace]
@ruck314
Copy link
Contributor Author

ruck314 commented Jun 29, 2024

Completed a hardware regression test on 10GbE RUDP example with XVC running. Seems to work and no change in behavior
image

@ruck314 ruck314 marked this pull request as ready for review June 29, 2024 16:23
Copy link
Contributor

@bengineerd bengineerd left a comment

Choose a reason for hiding this comment

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

See code comment.

include/rogue/EnableSharedFromThis.h Outdated Show resolved Hide resolved
@ruck314 ruck314 merged commit c2ddf8e into pre-release Jul 10, 2024
5 checks passed
@ruck314 ruck314 deleted the ESROGUE-554 branch July 10, 2024 21: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