|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset name="WordPress Coding Standards for Plugins"> |
| 3 | + <description>Generally-applicable sniffs for WordPress plugins</description> |
| 4 | + |
| 5 | + <rule ref="WordPress-VIP-Go" /> |
| 6 | + |
| 7 | + <!-- Rules: WordPress Coding Standards - see |
| 8 | + https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards --> |
| 9 | + <rule ref="WordPress-Extra"/> <!-- Includes WordPress-Core --> |
| 10 | + <rule ref="WordPress-Docs"/> |
| 11 | + <!-- For help in understanding this minimum_supported_wp_version: |
| 12 | + https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#setting-minimum-supported-wp-version-for-all-sniffs-in-one-go-wpcs-0140 --> |
| 13 | + <config name="minimum_supported_wp_version" value="4.4.2"/> |
| 14 | + |
| 15 | + <rule ref="WordPress.WP.I18n"> |
| 16 | + <properties> |
| 17 | + <property name="text_domain" type="array"> |
| 18 | + <element value="buddypress-vip-go"/> |
| 19 | + </property> |
| 20 | + </properties> |
| 21 | + </rule> |
| 22 | + |
| 23 | + <rule ref="PHPCompatibilityWP"/> |
| 24 | + <config name="testVersion" value="8.1-"/> |
| 25 | + |
| 26 | + <!-- How to scan --> |
| 27 | + <arg value="sp"/> <!-- Show sniff and progress --> |
| 28 | + <arg name="colors"/> <!-- Show results with colors. Disable if working on Windows --> |
| 29 | + <arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit --> |
| 30 | + <arg name="parallel" value="8"/> <!-- Enables parallel processing when available for faster results --> |
| 31 | + <arg name="extensions" value="php"/> <!-- Limit to PHP files --> |
| 32 | + |
| 33 | + <!-- Allow invoking just `phpcs` on command line without assuming STDIN for file input. --> |
| 34 | + <file>.</file> |
| 35 | + |
| 36 | + <exclude-pattern>*/node_modules/*</exclude-pattern> |
| 37 | + <exclude-pattern>*/vendor/*</exclude-pattern> |
| 38 | +</ruleset> |
0 commit comments