forked from wp-cli/admin-command
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wp-cli#42 from wp-cli/update-wp-cli-tests-v4
- Loading branch information
Showing
3 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WP-CLI-cache"> | ||
<description>Custom ruleset for WP-CLI admin-command</description> | ||
|
||
<!-- | ||
############################################################################# | ||
COMMAND LINE ARGUMENTS | ||
For help understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml | ||
For help using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage | ||
############################################################################# | ||
--> | ||
|
||
<!-- What to scan. --> | ||
<file>.</file> | ||
|
||
<!-- Show progress. --> | ||
<arg value="p"/> | ||
|
||
<!-- Strip the filepaths down to the relevant bit. --> | ||
<arg name="basepath" value="./"/> | ||
|
||
<!-- Check up to 8 files simultaneously. --> | ||
<arg name="parallel" value="8"/> | ||
|
||
<!-- | ||
############################################################################# | ||
USE THE WP_CLI_CS RULESET | ||
############################################################################# | ||
--> | ||
|
||
<rule ref="WP_CLI_CS"/> | ||
|
||
<!-- | ||
############################################################################# | ||
PROJECT SPECIFIC CONFIGURATION FOR SNIFFS | ||
############################################################################# | ||
--> | ||
|
||
<!-- For help understanding the `testVersion` configuration setting: | ||
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions --> | ||
<config name="testVersion" value="5.6-"/> | ||
|
||
<!-- Make this sniff slightly less finicky. The WP Core default is 40. --> | ||
<rule ref="Generic.Formatting.MultipleStatementAlignment"> | ||
<properties> | ||
<property name="maxPadding" value="20"/> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Exclude existing classes from the prefix rule as it would break BC to prefix them now. --> | ||
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound"> | ||
<exclude-pattern>*/src/Admin_Command\.php$</exclude-pattern> | ||
</rule> | ||
|
||
</ruleset> |