Refactor CI workflow#24
Conversation
Removed trailing whitespace check and updated cppcheck suppressions. Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com>
📝 WalkthroughWalkthroughThe CI workflow configuration was updated to remove a trailing whitespace check and refine cppcheck settings. Suppressions were adjusted, removing one check while adding six new ones. The mp3 directory was added to the exclusion list alongside existing exclusions. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/ci-build.yml:
- Around line 70-75: The global cppcheck suppression "shiftNegativeLHS" should
be removed from the CI config to avoid hiding undefined
left-shift-of-negative-value bugs; delete the "--suppress=shiftNegativeLHS"
entry and instead add targeted inline suppressions (use comments like "//
cppcheck-suppress shiftNegativeLHS") at the specific functions or files that are
known false positives, or add per-file suppressions in the cppcheck config for
those exact sources; search for bit-manipulation or signal-processing functions
and update their source locations with the inline suppress comment so the rest
of the codebase remains checked for genuine shiftNegativeLHS issues.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3f704e49-2a3d-4ae7-a666-2c88e0c4de62
📒 Files selected for processing (1)
.github/workflows/ci-build.yml
| --suppress=constVariablePointer \ | ||
| --suppress=constParameterPointer \ | ||
| --suppress=variableScope \ | ||
| --suppress=uselessCallsSubstr \ | ||
| --suppress=useStlAlgorithm \ | ||
| --suppress=shiftNegativeLHS \ |
There was a problem hiding this comment.
Consider keeping shiftNegativeLHS check enabled.
Most of these suppressions are reasonable style preferences. However, shiftNegativeLHS warns about left-shifting negative values, which is undefined behavior in C/C++. Suppressing this globally could mask real bugs in signal processing or bit manipulation code.
If specific instances are false positives, consider using inline suppressions (// cppcheck-suppress shiftNegativeLHS) at those locations rather than a global suppression.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/ci-build.yml around lines 70 - 75, The global cppcheck
suppression "shiftNegativeLHS" should be removed from the CI config to avoid
hiding undefined left-shift-of-negative-value bugs; delete the
"--suppress=shiftNegativeLHS" entry and instead add targeted inline suppressions
(use comments like "// cppcheck-suppress shiftNegativeLHS") at the specific
functions or files that are known false positives, or add per-file suppressions
in the cppcheck config for those exact sources; search for bit-manipulation or
signal-processing functions and update their source locations with the inline
suppress comment so the rest of the codebase remains checked for genuine
shiftNegativeLHS issues.
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
Removed trailing whitespace check and updated cppcheck suppressions.
Summary by CodeRabbit