-
Notifications
You must be signed in to change notification settings - Fork 38
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 #505 from buddypress/feature/wpcs-3.0
Support WPCS 3.0
- Loading branch information
Showing
12 changed files
with
83 additions
and
78 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
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
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
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 |
---|---|---|
@@ -1,13 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<description>PHP_CodeSniffer standard for the BuddyPress REST API plugin.</description> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="BP REST API Coding Standards Configuration" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | ||
<description>BP REST API Coding Standards Configuration.</description> | ||
|
||
<!-- Load BuddyPress Coding standards --> | ||
<rule ref="BuddyPress" /> | ||
|
||
<!-- What to exclude --> | ||
<exclude-pattern>*/**/tests/</exclude-pattern> | ||
<!-- | ||
Pass some flags to PHPCS: | ||
p flag: Show progress of the run. | ||
s flag: Show sniff codes in all reports. | ||
v flag: Print processed files. | ||
--> | ||
<arg value="psv" /> | ||
|
||
<!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. --> | ||
<arg name="cache" value=".phpcs/cache.json" /> | ||
|
||
<!-- Check 20 files in parallel. --> | ||
<arg name="parallel" value="20"/> | ||
|
||
<!-- Set severity to 1 to see everything that isn't effectively turned off. --> | ||
<arg name="severity" value="1"/> | ||
|
||
<!-- What to exclude --> | ||
<exclude-pattern>*/**/tests/</exclude-pattern> | ||
</ruleset> |