Skip to content

Commit

Permalink
Output a success message if no errors or warnings are found.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiron committed Oct 2, 2024
1 parent 3be27d8 commit ab0697f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/CLI/Plugin_Check_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ static function ( $dirs ) use ( $excluded_files ) {
$warnings = $result->get_warnings();
}

if ( empty( $errors ) && empty( $warnings ) ) {
WP_CLI::success( 'Checks complete. No errors found.' );

Check failure on line 247 in includes/CLI/Plugin_Check_Command.php

View workflow job for this annotation

GitHub Actions / PHP

Call to an undefined static method WP_CLI::success().

Check warning on line 247 in includes/CLI/Plugin_Check_Command.php

View check run for this annotation

Codecov / codecov/patch

includes/CLI/Plugin_Check_Command.php#L246-L247

Added lines #L246 - L247 were not covered by tests

return;

Check warning on line 249 in includes/CLI/Plugin_Check_Command.php

View check run for this annotation

Codecov / codecov/patch

includes/CLI/Plugin_Check_Command.php#L249

Added line #L249 was not covered by tests
}

// Default fields.
$default_fields = $this->get_check_default_fields( $assoc_args );

Expand Down

0 comments on commit ab0697f

Please sign in to comment.