Skip to content

Add standalone Cppcheck CI - #895

Merged
ColinLeeo merged 3 commits into
apache:developfrom
ColinLeeo:feature/cppcheck-ci
Aug 4, 2026
Merged

Add standalone Cppcheck CI#895
ColinLeeo merged 3 commits into
apache:developfrom
ColinLeeo:feature/cppcheck-ci

Conversation

@ColinLeeo

Copy link
Copy Markdown
Contributor

Summary

  • add a standalone Ubuntu 24.04 Cppcheck workflow for C++ changes
  • pin and cache Cppcheck 2.17.1 with source archive checksum verification
  • add a Maven profile that only enables CMAKE_EXPORT_COMPILE_COMMANDS
  • keep existing diagnostics visible through a line-scoped baseline while failing on new diagnostics
  • upload the Cppcheck report for inspection

Motivation

Cppcheck is independent of normal compilation and build artifacts. Running it in a separate CI workflow keeps the Maven build unchanged while adding cross-platform static analysis coverage for the C++ implementation.

Validation

  • generated cpp/target/build/compile_commands.json through the Maven CMake goal
  • ran the exact Cppcheck 2.17.1 command successfully against the latest origin/develop
  • confirmed the existing baseline diagnostics remain visible and the scan exits successfully
  • validated workflow YAML and cpp/pom.xml syntax
  • passed git diff --check and Apache RAT checks

@ColinLeeo
ColinLeeo marked this pull request as ready for review August 4, 2026 09:10
@ColinLeeo
ColinLeeo merged commit 705c971 into apache:develop Aug 4, 2026
39 checks passed
@ColinLeeo
ColinLeeo deleted the feature/cppcheck-ci branch August 4, 2026 09:13
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.

1 participant