mirror of
https://github.com/buddypress/buddypress.git
synced 2026-07-21 20:54:17 +08:00
Until we have all WPCS warnings and errors fixed, we block pull requests, and releases, with code with escaping or/and PHP Compatibility issues. For local development only, we set WPCS severity to 1 to see everything that is not effectively turned off. Run `composer run phpcs` for showing all WPCS issues. Run `composer run phpcs-escape` for showing escaping issues. Run `composer run phpcompat` for showing PHP Compatibility issues. See #7228 Closes https://github.com/buddypress/buddypress/pull/282/ git-svn-id: https://buddypress.svn.wordpress.org/trunk@13850 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
30 lines
1 KiB
XML
30 lines
1 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="BuddyPress Coding Standards Configuration" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
|
|
<description>BuddyPress Coding Standards Configuration.</description>
|
|
|
|
<!-- Load BuddyPress Coding standards -->
|
|
<rule ref="BuddyPress" />
|
|
|
|
<!--
|
|
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="sp" />
|
|
|
|
<!-- Make it pretty. -->
|
|
<arg name="colors"/>
|
|
|
|
<!-- 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>
|