40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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>
 | |
| 
 | |
|     <exclude-pattern>*/assets/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/cache/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/languages/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/node_modules/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/resources/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/tests/*$</exclude-pattern>
 | |
|     <exclude-pattern>*/vendor/*$</exclude-pattern>
 | |
| 
 | |
|     <arg name="basepath" value="./" />
 | |
|     <arg name="colors" />
 | |
|     <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>
 |