| @@ -1,50 +1,34 @@ | ||
| 1 | 1 | <?xml version="1.0"?> |
| 2 | 2 | <ruleset name="Themeisle"> |
| 3 | 3 | <description>Themeisle rules for PHP_CodeSnifferr</description> |
| 4 | 4 | |
| 5 | - <file>./</file> | |
| 5 | + <file>.</file> | |
| 6 | 6 | |
| 7 | - <arg value="ps"/> | |
| 8 | - <arg name="extensions" value="php"/> | |
| 9 | - | |
| 10 | - <exclude-pattern>./vendor</exclude-pattern> | |
| 11 | - <exclude-pattern>./old</exclude-pattern> | |
| 12 | - <exclude-pattern>./tests/sample_products</exclude-pattern> | |
| 13 | - | |
| 14 | - | |
| 7 | + <exclude-pattern>node_modules/*</exclude-pattern> | |
| 8 | + <exclude-pattern>vendor/*</exclude-pattern> | |
| 9 | + <exclude-pattern>lib/*</exclude-pattern> | |
| 10 | + <exclude-pattern>old/*</exclude-pattern> | |
| 11 | + <exclude-pattern>*.min.js</exclude-pattern> | |
| 12 | + <exclude-pattern>*.min.css</exclude-pattern> | |
| 15 | 13 | <rule ref="WordPress-Core"> |
| 14 | + <exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/> | |
| 15 | + <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/> | |
| 16 | + <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/> | |
| 17 | + <exclude name="Generic.Commenting.DocComment.MissingShort"/> | |
| 18 | + <exclude name="Squiz.Commenting.InlineComment.NotCapital"/> | |
| 19 | + <exclude name="Squiz.Commenting.LongConditionClosingComment.Missing"/> | |
| 20 | + <exclude name="Squiz.Commenting.LongConditionClosingComment.Invalid"/> | |
| 21 | + <exclude name="WordPress.NamingConvention.ValidVariableName.StringNotSnakeCase"/> | |
| 22 | + <exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase"/> | |
| 23 | + <exclude name="WordPress.PHP.YodaConditions.NotYoda"/> | |
| 24 | + <exclude name="Squiz.PHP.DisallowMultipleAssignments" /> | |
| 25 | + </rule> | |
| 26 | + <rule ref="WordPress-Docs"> | |
| 16 | 27 | |
| 17 | - <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> | |
| 18 | - <exclude name="WordPress.Files.FileName.InvalidClassFileName"/> | |
| 19 | - <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/> | |
| 20 | 28 | </rule> |
| 21 | - <rule ref="WordPress-Docs"/> | |
| 22 | - <rule ref="WordPress.WP.I18n"/> | |
| 23 | - <rule ref="Squiz.Commenting.FunctionComment.Missing"> | |
| 24 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 29 | + | |
| 30 | + <rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"> | |
| 31 | + <severity>0</severity> | |
| 25 | 32 | </rule> |
| 26 | - <rule ref="Squiz.Commenting.FileComment.Missing"> | |
| 27 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 28 | - </rule> | |
| 29 | - <rule ref="Squiz.Commenting.ClassComment.Missing"> | |
| 30 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 31 | - </rule> | |
| 32 | - <rule ref="Squiz.Commenting.ClassComment.SpacingAfter"> | |
| 33 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 34 | - </rule> | |
| 35 | - <rule ref="Squiz.Commenting.FunctionComment.MissingParamTag"> | |
| 36 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 37 | - </rule> | |
| 38 | - <rule ref="Generic.Commenting.DocComment.MissingShort"> | |
| 39 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 40 | - </rule> | |
| 41 | - <rule ref="Squiz.Commenting.VariableComment.Missing"> | |
| 42 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 43 | - </rule> | |
| 44 | - <rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing"> | |
| 45 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 46 | - </rule> | |
| 47 | - <rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"> | |
| 48 | - <exclude-pattern>tests/*</exclude-pattern> | |
| 49 | - </rule> | |
| 33 | + | |
| 50 | 34 | </ruleset> |