Adding PHP Code Sniffer example config file
This commit is contained in:
		
							
								
								
									
										32
									
								
								phpcs.xml.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								phpcs.xml.example
									
									
									
									
									
										Normal 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> | ||||
		Reference in New Issue
	
	Block a user