50 lines
1.8 KiB
XML
50 lines
1.8 KiB
XML
|
|
<?xml version="1.0"?>
|
||
|
|
<ruleset name="Themeisle">
|
||
|
|
<description>Themeisle rules for PHP_CodeSnifferr</description>
|
||
|
|
|
||
|
|
<file>./</file>
|
||
|
|
|
||
|
|
<arg value="ps"/>
|
||
|
|
<arg name="extensions" value="php"/>
|
||
|
|
|
||
|
|
<exclude-pattern>./vendor</exclude-pattern>
|
||
|
|
<exclude-pattern>./old</exclude-pattern>
|
||
|
|
<exclude-pattern>./tests/sample_products</exclude-pattern>
|
||
|
|
|
||
|
|
|
||
|
|
<rule ref="WordPress-Core">
|
||
|
|
|
||
|
|
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
|
||
|
|
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
|
||
|
|
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
|
||
|
|
</rule>
|
||
|
|
<rule ref="WordPress-Docs"/>
|
||
|
|
<rule ref="WordPress.WP.I18n"/>
|
||
|
|
<rule ref="Squiz.Commenting.FunctionComment.Missing">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.FileComment.Missing">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.ClassComment.Missing">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.ClassComment.SpacingAfter">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Generic.Commenting.DocComment.MissingShort">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.VariableComment.Missing">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
|
||
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
||
|
|
</rule>
|
||
|
|
</ruleset>
|