Scope and relevance filtering
Keeps only findings that belong to this change: on changed lines, within the PR's intent, and fixable without reworking unchanged code.
Sub-techniques
3
| ID | Name | Description |
|---|---|---|
V1047.001 | Diff scoping | Report only on changed lines or their immediate context. |
V1047.002 | Intent scoping | Move findings outside the PR's intent to follow-up work. |
V1047.003 | Remediation scope | Check whether the fix stays inside the diff or reaches unchanged code. |
Craft it
- Filter by diff hunks first; it is cheap and removes most noise.
- Check each remaining finding against the stated intent.
- File out-of-scope findings as issues instead of review comments.
Reverse engineer it
Signs that a codebase already runs this technique, and where to read how it is configured.
- reviewdog -filter-mode settings, or bots that only comment on changed lines.