Skip to content

feat(scan): run deterministic scanners and honor ignore.rules / cora-ignore (#595) - #599

Merged
ajianaz merged 2 commits into
developfrom
feat/scan-deterministic
Oct 8, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/scan-deterministic

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

What

  • cora scan now runs the deterministic secrets and security scanners on every scanned file and merges the results with LLM and index findings via rules::merge_rule_findings (same dedup by file:line as cora review).
  • The merged list is filtered by ignore.rules (apply_ignore_rules, now pub(crate)) and by inline cora-ignore: markers.
  • Scanned files are turned into synthetic all-added FileChunks (scanner::files_as_chunks), so the existing scanners and inline_suppress::apply are reused unchanged. Review behaviour is untouched.
  • Docs (docs/configuration.md) and CHANGELOG [Unreleased] updated.

Why

cora scan was LLM-only. An LLM 502 produced "No issues found" even for an obvious hardcoded password, and ignore.rules / cora-ignore: had no effect on scan results.

Testing

  • New unit tests in src/commands/scan.rs: secret found with no LLM; inline marker suppresses it; ignore.rules suppresses it; an LLM batch failure (unreachable 127.0.0.1:1, no real network) still yields the deterministic finding and exit code 2 in block mode.
  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test all green.

Closes #595

🤖 Generated with Claude Code

ajianaz and others added 2 commits October 8, 2026 14:48
…ignore (#595)

cora scan now runs the secrets and security scanners on scanned files,
merges them with LLM findings, and applies ignore.rules and inline
cora-ignore markers, so findings survive an LLM batch failure.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@ajianaz
ajianaz merged commit d416c1b into develop Oct 8, 2026
14 checks passed
@ajianaz
ajianaz deleted the feat/scan-deterministic branch October 16, 2026 00:43
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.

feat(scan): run deterministic scanners and honor ignore.rules / cora-ignore in cora scan

1 participant