feat(sast): the CRA C rules also run on C++ (#373) (#391)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 7m13s

This commit was merged in pull request #391.
This commit is contained in:
sharang committed 2026-09-25 11:01:43 +00:00
1 parent e399cea0b6
commit 9a0d690036
7 files changed
+99 -13

No files matched your search

+2 -1
View File
@@ -223,8 +223,9 @@ mod tests {
// Only Python/JS rules check secure defaults.
assert!(!secure_defaults.checked_for(&c_only));
assert!(secure_defaults.checked_for(&python));
// Our C rules and cppcheck check memory safety in C.
// Our C rules and cppcheck check memory safety in C, and in C++.
assert!(memory_safety.checked_for(&c_only));
assert!(memory_safety.checked_for(&["cpp".to_string()]));
// gitleaks reads any file, so no language is needed.
assert!(secrets.checked_for(&[]));
}