Skip to content

cleanup and make more consistent Check command #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2025

Conversation

micheleorselli
Copy link
Member

No description provided.

Copy link

codecov bot commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.55%. Comparing base (d3f15d3) to head (07dd7d1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/CLI/Command/Check.php 95.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #486      +/-   ##
============================================
+ Coverage     95.54%   95.55%   +0.01%     
- Complexity      631      638       +7     
============================================
  Files            73       74       +1     
  Lines          1727     1733       +6     
============================================
+ Hits           1650     1656       +6     
  Misses           77       77              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Copy link

@micheleorselli micheleorselli marked this pull request as ready for review April 17, 2025 20:28
$targetPhpVersion = TargetPhpVersion::create($phpVersion);

$progress = $verbose ? new DebugProgress($output) : new ProgressBarProgress($output);

$this->printHeadingLine($output);

if (true !== $skipBaseline && !$useBaseline && file_exists(self::DEFAULT_BASELINE_FILENAME)) {
$useBaseline = self::DEFAULT_BASELINE_FILENAME;
}

if ($useBaseline && !file_exists($useBaseline)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a little bit strange that we check the baseline existence in a different place(and time) from where we read it, but this could be even a later refactoring...

@micheleorselli micheleorselli merged commit 0903322 into main Apr 18, 2025
35 checks passed
@micheleorselli micheleorselli deleted the cleanup_check_command branch April 18, 2025 12:32
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.

2 participants