Pilot · CRA C rules also run on C++ sources #373

Closed
opened 2026-09-25 07:59:06 +00:00 by sharang · 0 comments
Owner

Part of #338.

Problem

All our CRA C rules are languages: [c] (compliance-agent/rules/cra_semgrep.yaml:125-206). Semgrep does not apply them to C++ sources (.cpp, .cc, .hpp), so C++ application code only gets cppcheck.

Done when

  • The C rules that make sense for C++ also run on C++ sources: banned calls, format strings, hard-coded credentials, weak crypto, rand().
  • C++-specific false positives are checked, for example std::string methods sharing a name with a banned call.
  • Nightly: a small C++ fixture file with the expected rule ids.
Part of #338. ## Problem All our CRA C rules are `languages: [c]` (`compliance-agent/rules/cra_semgrep.yaml:125-206`). Semgrep does not apply them to C++ sources (`.cpp`, `.cc`, `.hpp`), so C++ application code only gets cppcheck. ## Done when - The C rules that make sense for C++ also run on C++ sources: banned calls, format strings, hard-coded credentials, weak crypto, `rand()`. - C++-specific false positives are checked, for example `std::string` methods sharing a name with a banned call. - Nightly: a small C++ fixture file with the expected rule ids.
sharang added this to the Production MVP milestone 2026-09-25 07:59:06 +00:00
sharang added the enhancement label 2026-09-25 07:59:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#373