Skip to content

feat(validate): --min-severity display filter to cut advisory noise (#357)#366

Merged
avrabe merged 1 commit into
mainfrom
feat/req-137-validate-severity-filter
May 31, 2026
Merged

feat(validate): --min-severity display filter to cut advisory noise (#357)#366
avrabe merged 1 commit into
mainfrom
feat/req-137-validate-severity-filter

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 31, 2026

Implements #357 (my own dogfooding finding). rivet validate printed every diagnostic; on a clean repo that is ~160 advisory warnings for 0 errors, burying anything actionable.

rivet validate --min-severity error (or warning/info) now displays only diagnostics at/above the floor, with a one-line note of how many were suppressed. Counts + exit code unchanged (display-only) — loud-fail preserved. Reuses the --fail-on parser. Regression test + verified on rivet's repo (--min-severity error → 'showing 0 of 356'). REQ-137.

🤖 Generated with Claude Code

…357)

Self-reported dogfooding finding. `rivet validate` printed every diagnostic
regardless of severity — on rivet's own repo ~160 advisory warnings for 0
errors, burying anything actionable. `--fail-on` gates the exit code but still
prints everything.

New `rivet validate --min-severity <error|warning|info>` displays only
diagnostics at or above the floor (text output). Counts + exit code are
unchanged (computed from the full set); when the filter hides anything, a
one-line note reports "showing N of M … at or above '<level>'" so nothing is
silently dropped. Reuses the existing --fail-on severity parser.

Regression test validate_min_severity_filters_display. Filed as REQ-137
(implemented).

Implements: REQ-137
Verifies: REQ-137
Refs: REQ-004

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📐 Rivet artifact delta

Change Count
Added 1
Removed 0
Modified 0
Downstream impacted (depth ≤ 5) 0

Graph

graph LR
  REQ_137["REQ-137"]:::added
  classDef added fill:#d4edda,stroke:#28a745,color:#155724
  classDef removed fill:#f8d7da,stroke:#dc3545,color:#721c24
  classDef modified fill:#fff3cd,stroke:#ffc107,color:#856404
  classDef overflow fill:#e2e3e5,stroke:#6c757d,color:#495057,stroke-dasharray: 3 3
Loading
Added
  • REQ-137

📎 Full HTML dashboard attached as workflow artifact rivet-delta-pr-366download from the workflow run.

Posted by rivet-delta workflow. The graph shows only changed artifacts; open the HTML dashboard (above) for full context.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 68bc025 into main May 31, 2026
19 of 39 checks passed
@avrabe avrabe deleted the feat/req-137-validate-severity-filter branch May 31, 2026 12:16
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.

1 participant