Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 17, 2025

Description

Show error message if no files were checked during a run and exit with a non-zero exit code.

Note: the tests only cover the new error message and not the situation where this message would not be shown (outside the scope of this change).

Suggested changelog entry

Added:
An error message is now displayed if no files were checked during a run.
- This occurs when all of the specified files matched exclusion rules, or none matched filtering rules.

Related issues/external references

Fixes squizlabs/PHP_CodeSniffer#1595

... and exit with a non-zero exit code.

Fixes squizlabs/PHP_CodeSniffer 1595

Note: the tests only cover the new error message and not the situation where this message would _not_ be shown (outside the scope of this change).

Co-authored-by: jrfnl <[email protected]>
@jrfnl jrfnl force-pushed the phpcs-4.0/feature/sq-1595-display-error-on-no-files-checked branch from 829c6d4 to 14cc840 Compare April 18, 2025 10:17
@jrfnl jrfnl merged commit 8ac3cad into 4.x Apr 18, 2025
52 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-1595-display-error-on-no-files-checked branch April 18, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants