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>
5 <!-- Scan all files in directory -->
8 <!-- Scan only PHP files -->
9 <arg name=
"extensions" value=
"php"/>
11 <!-- Show colors in console -->
12 <arg value=
"-colors"/>
14 <!-- Show sniff codes in all reports -->
17 <!-- Include the WordPress-Extra standard. -->
18 <rule ref=
"WordPress-Extra">
19 <!-- Exclude any rules here -->
20 <exclude name=
"WordPress.PHP.DisallowShortTernary"/>
23 <!-- Let's also check that everything is properly documented. -->
24 <!-- <rule ref="WordPress-Docs"/> -->
26 <!-- Add in some extra rules from other standards. -->
27 <rule ref=
"Generic.CodeAnalysis.UnusedFunctionParameter"/>
28 <rule ref=
"Generic.Commenting.Todo"/>
30 <config name=
"minimum_supported_wp_version" value=
"4.9"/>