Skip to content

Findings located by a bare file or function name lose their file #535

Closed

Description

@dan-petty

Found by the first run of devops review samples validate --review (#505).

36 of 208 candidate findings across the 12 sample corpora carried a location with no directory. Some were a bare file name (flag_groups.go:111-116, read.rs:905-906, Dockerfile:7); others a function name (getBodySize:18-24, nvm_alias_path() { 1368-1374). The review knows the file of the page each finding came from, but keeps the model's text, so the finding is not tied to its file:

  • a reader of Dockerfile:7 cannot tell which of several Dockerfiles is meant;
  • corpus scoring cannot match the finding, so recall is understated;
  • deterministic checks that read the file at the location cannot run.

Several sat on injected defects: redis-master-controller.yaml:22 is exactly an injected line. Resolving bare file names to the page's file alone raises the run from 28 to 33 injections found, and from 22 to 24 still reported, of 109.

Deliverables

  • A finding whose location names no directory is resolved to the file of the page it came from: a bare file name when it matches that file's name, a function or symbol name when the file defines it. The lines are kept.
  • A location that matches no file under review is left as it is and counted, not silently rewritten.
  • Distinct from feat(cli): construct-aware location validation #433, which relocates a finding whose lines point at the wrong code in the right file.

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/bug
    scope/review
    priority/p1-high
    on Sep 24, 2026
  3. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #544, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

    priority/p1-highscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions