| 1 | <?xml version="1.0"?> |
| 2 | <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="dagreynix" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> |
| 3 | <description>danix Wordpress Coding Standards</description> |
| 4 | |
| 5 | <!-- Scan all files in directory --> |
| 6 | <file>.</file> |
| 7 | |
| 8 | <!-- Scan only PHP files --> |
| 9 | <arg name="extensions" value="php"/> |
| 10 | |
| 11 | <!-- Show colors in console --> |
| 12 | <arg value="-colors"/> |
| 13 | |
| 14 | <!-- Show sniff codes in all reports --> |
| 15 | <arg value="ns"/> |
| 16 | |
| 17 | <!-- Include the WordPress-Extra standard. --> |
| 18 | <rule ref="WordPress-Extra"> |
| 19 | <!-- Exclude any rules here --> |
| 20 | <exclude name="WordPress.PHP.DisallowShortTernary"/> |
| 21 | </rule> |
| 22 | |
| 23 | <!-- Let's also check that everything is properly documented. --> |
| 24 | <!-- <rule ref="WordPress-Docs"/> --> |
| 25 | |
| 26 | <!-- Add in some extra rules from other standards. --> |
| 27 | <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/> |
| 28 | <rule ref="Generic.Commenting.Todo"/> |
| 29 | |
| 30 | <config name="minimum_supported_wp_version" value="4.9"/> |
| 31 | </ruleset> |