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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
rand().std::stringmethods sharing a name with a banned call.