Skip to content

Report when baseline violations look fixed#638

Open
fain182 wants to merge 1 commit into
mainfrom
feature/baseline-report-stale-violations
Open

Report when baseline violations look fixed#638
fain182 wants to merge 1 commit into
mainfrom
feature/baseline-report-stale-violations

Conversation

@fain182

@fain182 fain182 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

New Feature

Q A
New Feature yes
RFC no
BC Break no

Summary

A flat baseline file tends to become invisible: nothing prompts anyone to notice that some of its entries no longer occur and could be removed, so debt that's already paid down stays recorded forever.

check now counts, after applying the baseline, how many baseline entries have no matching violation in the current run, and prints a message when that count is greater than zero:

💡 3 violations in the baseline look fixed — regenerate the baseline to remove them
A flat baseline file tends to become invisible: nothing prompts anyone
to notice that some of its entries no longer occur and could be
removed, so debt that's already paid down stays recorded forever.

check now counts, after applying the baseline, how many baseline
entries have no matching violation in the current run and prints a
short message when that count is greater than zero.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.27%. Comparing base (80cae2e) to head (823c433).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #638      +/-   ##
============================================
+ Coverage     98.25%   98.27%   +0.02%     
- Complexity      700      711      +11     
============================================
  Files            87       87              
  Lines          2000     2026      +26     
============================================
+ Hits           1965     1991      +26     
  Misses           35       35              
Files with missing lines Coverage Δ
src/CLI/Baseline.php 93.93% <100.00%> (+0.60%) ⬆️
src/CLI/Command/Check.php 100.00% <100.00%> (ø)
src/Rules/Violations.php 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant