-
Notifications
You must be signed in to change notification settings - Fork 10
Require WP-CLI v2.13 #76
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,4 +55,6 @@ | |
| <rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound"> | ||
| <exclude-pattern>*/src/(Role|Capabilities)_Command\.php$</exclude-pattern> | ||
| </rule> | ||
|
|
||
| <exclude-pattern>/tests/phpstan/scan-files</exclude-pattern> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The regular expression for the To correctly exclude the new file, you should remove the leading slash and consider making the pattern more specific to avoid unintended matches, similar to other patterns in this file. |
||
| </ruleset> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <?php | ||
|
|
||
| define( 'ABSPATH', '' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs.xml.distexclude pattern likely won’t matchtests/phpstan/scan-files.phpbecause it starts with a leading/(paths are typically relative to the ruleset basepath) and doesn’t include the.phpsuffix. Update the pattern to match the actual file path (e.g., use a wildcard prefix like*/and include/anchor the.phpextension) so PHPCS reliably excludes this bootstrap file.