Adding PHP Code Sniffer example config file

This commit is contained in:
Brian 2021-06-02 11:05:51 -06:00
parent 9206f32aad
commit c94414dc0e
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

32
phpcs.xml.example Normal file
View File

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>CodeSniffing standards for this project.</description>
<config name="installed_paths" value="./vendor/wp-coding-standards/wpcs" />
<file>bootstrap.php</file>
<file>nmsp-plugin-name.php</file>
<file>uninstall.php</file>
<file>constants</file>
<file>includes</file>
<arg name="basepath" value="./" />
<arg name="colors" />
<arg name="parallel" value="75" />
<arg name="report" value="full" />
<arg name="extensions" value="php" />
<arg value="nps" />
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- Include the whole Wordpress standard -->
<rule ref="WordPress-Core">
<!-- exclude rules here if needed -->
</rule>
<rule ref="WordPress-Extra">
<!-- exclude rules here if needed -->
</rule>
</ruleset>