Repository navigation
refactor(types): ReviewIssue::new constructor and table-driven secret tests (#610) - #615
Merged
Merged
Conversation
… tests (#610) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 9, 2026
Closed
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ReviewIssue::new(file, line, severity, title)plus chainablewith_type/with_body/with_fix(test-only) /with_rule_id. All 38 hand-built struct literals (production: rules merge, index scanner; plus tests) now use it. Serde derive untouched.src/engine/secret_heuristics_tests.rs: one table (CASES, 66 rows) run end-to-end (deterministic::run-> merge ->postprocess), plusKNOWN_GAPS(15 rows) pinning current behaviour of unfixed false positives/negatives.Why
Adding a
ReviewIssuefield (likerule_id/also_matches) touched ~46 sites. Now it is one place. The table makes secret-heuristic regressions visible per language/row. Part of #610 step 2; no user-visible change and no detection logic changed.Testing
cargo fmt,cargo clippy --all-targets -- -D warnings, fullcargo testx3 green.Known gaps pinned (need issues): env-var reads / call expressions flagged as secrets (js, py, rs, java, kt);
${VAR}interpolation in env/.properties/sh flagged; Go:=andvar x string =not flagged; unquoted YAML value and quoted JSON keys not flagged; SQLPASSWORD '<lit>'not flagged.Refs #610
🤖 Generated with Claude Code