Skip to content

Defect generator injects into code examples inside block comments #537

Closed

Description

@dan-petty

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

9 of the 78 injections into brace languages were inside multi-line comments, all drop-await in ky: JSDoc examples such as const text = await ky('https://example.com', options).text(); in types/ky.ts. The brace-language finders (#503) blank string literals and single-line comments, but a /* ... */ block spanning lines is not tracked. So an example in documentation counts as code, and the corpus scores a reviewer on defects that do not exist: 9 of the 20 TypeScript injections.

Deliverables

  • Lines inside a block comment spanning lines are blanked for every brace-language finder: guards, awaits, TLS, modes and string calls.
  • Tests with a JSDoc or Javadoc example holding each pattern; the pinned samples swept again for injections inside comments.

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. added a commit that references this issue on Sep 24, 2026
    f73d843
  4. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #543, 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