← Back
Editing: phpcs.xml.dist
<?xml version="1.0"?> <ruleset name="WordPress Coding Standards for Plugins"> <description>Generally-applicable sniffs for WordPress plugins</description> <rule ref="PHPCompatibility"/> <config name="testVersion" value="5.3-"/> <rule ref="WordPress-Core"> <exclude name="WordPress.DateTime.CurrentTimeTimestamp.Requested" /> </rule> <rule ref="WordPress-Docs" /> <rule ref="WordPress-Extra" > <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" /> <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" /> </rule> <!-- Check all PHP files in directory tree by default. --> <arg name="extensions" value="php"/> <file>.</file> <!-- Show sniff codes in all reports --> <arg value="s"/> <exclude-pattern>*/node_modules/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern> </ruleset>
Save File
Cancel