Skip to content

Add prune-baseline command with shrink-only semantics#657

Draft
fain182 wants to merge 8 commits into
mainfrom
claude/prune-baseline-649
Draft

Add prune-baseline command with shrink-only semantics#657
fain182 wants to merge 8 commits into
mainfrom
claude/prune-baseline-649

Replace repository exists() with loadIfPresent(): ?Baseline

6e2adf1
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 18, 2026 in 0s

97.84% (target 95.00%)

View this Pull Request on Codecov

97.84% (target 95.00%)

Details

Codecov Report

❌ Patch coverage is 98.47328% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.84%. Comparing base (88a3138) to head (6e2adf1).

Files with missing lines Patch % Lines
src/CLI/Command/PruneBaseline.php 95.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #657      +/-   ##
============================================
- Coverage     98.28%   97.84%   -0.45%     
- Complexity      737      762      +25     
============================================
  Files            94       98       +4     
  Lines          2100     2181      +81     
============================================
+ Hits           2064     2134      +70     
- Misses           36       47      +11     
Files with missing lines Coverage Δ
src/CLI/Baseline.php 100.00% <100.00%> (+3.33%) ⬆️
src/CLI/BaselineFileRepository.php 100.00% <100.00%> (ø)
src/CLI/CheckHandler.php 100.00% <100.00%> (ø)
src/CLI/CheckOptions.php 100.00% <ø> (ø)
src/CLI/Command/Check.php 100.00% <100.00%> (ø)
src/CLI/Command/CommonOptions.php 100.00% <100.00%> (ø)
src/CLI/Command/GenerateBaseline.php 95.23% <100.00%> (ø)
src/CLI/GenerateBaselineHandler.php 100.00% <100.00%> (ø)
src/CLI/PhpArkitectApplication.php 100.00% <100.00%> (ø)
src/CLI/PruneBaselineHandler.php 100.00% <100.00%> (ø)
... and 3 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.