phpcs.xml
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="Jetpack"> |
| 3 | <config name="minimum_supported_wp_version" value="4.7" /> |
| 4 | <config name="testVersion" value="5.2-"/> |
| 5 | |
| 6 | <rule ref="PHPCompatibility" /> |
| 7 | <rule ref="WordPress-Core" /> |
| 8 | <rule ref="WordPress-Docs" /> |
| 9 | <rule ref="WordPress-Extra" /> |
| 10 | <rule ref="VariableAnalysis" /> |
| 11 | |
| 12 | <rule ref="WordPress.WP.I18n"> |
| 13 | <properties> |
| 14 | <property name="text_domain" type="array" value="jetpack" /> |
| 15 | </properties> |
| 16 | </rule> |
| 17 | |
| 18 | <!-- Check all PHP files in directory tree by default. --> |
| 19 | <arg name="extensions" value="php"/> |
| 20 | <file>.</file> |
| 21 | |
| 22 | <!-- Show sniff codes in all reports --> |
| 23 | <arg value="s"/> |
| 24 | |
| 25 | <arg name="colors"/> |
| 26 | |
| 27 | <exclude-pattern>/docker/*</exclude-pattern> |
| 28 | <exclude-pattern>/node_modules/*</exclude-pattern> |
| 29 | <exclude-pattern>/tests/*</exclude-pattern> |
| 30 | <exclude-pattern>/vendor/*</exclude-pattern> |
| 31 | </ruleset> |
| 32 |