Skip to content
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

GH Actions/linting: show deprecations when linting #106

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 1, 2024

While rare, there are some deprecations which PHP can show when a file is being linted. By default these are ignored by PHP-Parallel-Lint.

However, there is an option to show them, so let's turn that option on.

To make the option effective, we also need to ensure that PHP is run in a way that all errors will be shown, which is not the case by default, so this also sets some ini-values for PHP to a more optimal setting for CI.

Lastly, in the command, let's also make the package directory iteration a little faster by preventing parallel lint from having to iterate through the .git directory when there are no PHP files to be found there anyway.

While rare, there are some deprecations which PHP can show when a file is being linted.
By default these are ignored by PHP-Parallel-Lint.

However, there is an option to show them, so let's turn that option on.

To make the option effective, we also need to ensure that PHP is run in a way that all errors will be shown, which is not the case by default, so this also sets some `ini-values` for PHP to a more optimal setting for CI.

Lastly, in the command, let's also make the package directory iteration a little faster by preventing parallel lint from having to iterate through the `.git` directory when there are no PHP files to be found there anyway.
@jrfnl jrfnl requested a review from a team as a code owner October 1, 2024 11:17
@swissspidy swissspidy merged commit 735a612 into wp-cli:main Oct 1, 2024
7 checks passed
@jrfnl jrfnl deleted the feature/linting-show-deprecations branch October 1, 2024 11:29
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