Skip to content

feat(scan): qual-clone produces 306 info findings on one Rust workspace; add a default-off or a --min-severity for scan #683

Closed

Description

@ajianaz

Problem

On a 133-file Rust workspace (53k lines) cora scan --no-llm reports 457 deterministic findings, 306 of them qual-clone (info): almost all Arc::clone, String/PathBuf clones and state.clone() handed to a thread, which is the intended ownership model. The signal-to-noise of the summary ("found 457 issues") is poor, and max_findings (default 50) then spends its slots on this noise once Critical/Major are exhausted.

cora scan also has no --min-severity (review has hook.min_severity; the MCP finalize tools have min_severity), so the only fix is ignore.rules: ["qual-clone"].

Proposal

  1. Make qual-clone opt-in for Rust, or restrict it to the cases that are actually suspicious (clone inside a loop body, .clone() of a large owned collection immediately consumed by value, clone of a Copy type).
  2. Add cora scan --min-severity <info|minor|major|critical> (and the equivalent config key), honoured by pretty/json/sarif output and by the summary count.
  3. In the summary line, count by severity so "found 457 issues" does not hide that one is critical and 306 are info.

Done when

A default scan of a typical Rust project does not list Arc::clone sites; --min-severity minor hides info findings in all output formats.

Related: #663, #661.

Activity

  1. added
    enhancement
    scope:core
    on Oct 16, 2026
  2. added 2 commits that reference this issue on Oct 27, 2026
    5d5fbab
    36a8dba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:lowscope:core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions