Skip to content
Snippets Groups Projects
Select Git revision
  • 44516b260154283e4a7bd71fde470350c233238f
  • master default protected
  • bugfix/vendor-excluded
  • feature/phpcs-editorconfig
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.8
  • 1.2.7
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.1.0-beta1
  • 1.0.1
  • 1.0.0
  • 1.0.0-beta8
  • 1.0.0-beta7
  • 1.0.0-beta6
  • 1.0.0-beta5
24 results

ruleset.xml

Blame
  • ruleset.xml 903 B
    <?xml version="1.0"?>
    <ruleset name="WPDeskPlugin">
    	<description>Sniffs for WordPress WPDesk plugins</description>
    
    	<config name="testVersion" value="5.6-"/>
    
    	<arg name="extensions" value="php"/>
    
    	<exclude-pattern>tests/*</exclude-pattern>
    	<exclude-pattern>scoper.inc.php</exclude-pattern>
    
    	<rule ref="PHPCompatibility"/>
    	<rule ref="WordPress"/>
    
    	<!-- Remove checking if classes are in class- files -->
    	<rule ref="WordPress.Files.FileName">
    		<exclude-pattern>/class*/.*\.php</exclude-pattern>
    	</rule>
    
    	<rule ref="WordPress.Files.FileName.InvalidClassFileName">
        	<exclude-pattern>/class*/.*\.php</exclude-pattern>
        </rule>
    
    	<rule ref="WordPress.NamingConventions.ValidVariableName">
        	<exclude-pattern>/class*/.*\.php</exclude-pattern>
        </rule>
    
        <rule ref="Generic.Commenting.DocComment.MissingShort">
            <exclude-pattern>\.php</exclude-pattern>
        </rule>
    </ruleset>