|
| 1 | +<ruleset name="WordPressStandard"> |
| 2 | + <description>PHP 7.0 compatibility.</description> |
| 3 | + <config name="testVersion" value="7.2"/> |
| 4 | + <exclude-pattern>vendor/*</exclude-pattern> |
| 5 | + <rule ref="PHPCompatibility"> |
| 6 | + <exclude name="PHPCompatibility.Keywords.ForbiddenNamesAsDeclared"/> |
| 7 | + </rule> |
| 8 | + <rule ref="WordPress-Core"> |
| 9 | + <exclude name="Generic.Commenting.DocComment.MissingShort"/> |
| 10 | + <exclude name="Generic.PHP.DiscourageGoto.Found"/> |
| 11 | + <exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedIf"/> |
| 12 | + <!-- Unused arguments are necessary when inheriting from classes and overriding methods. --> |
| 13 | + <exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.Found"/> |
| 14 | + <exclude name="Squiz.PHP.NonExecutableCode.Unreachable"/> |
| 15 | + <exclude name="Squiz.Commenting.BlockComment.CloserSameLine"/> |
| 16 | + <exclude name="Squiz.Commenting.ClassComment.Missing"/> |
| 17 | + <exclude name="Squiz.Commenting.FileComment.WrongStyle"/> |
| 18 | + <exclude name="Squiz.Commenting.FileComment.Missing"/> |
| 19 | + <exclude name="Squiz.Commenting.FunctionComment.Missing"/> |
| 20 | + <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/> |
| 21 | + <exclude name="Squiz.Commenting.FunctionComment.MissingParamType"/> |
| 22 | + <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/> |
| 23 | + <exclude name="Squiz.Commenting.VariableComment.Missing"/> |
| 24 | + <exclude name="Squiz.PHP.CommentedOutCode.Found"/> |
| 25 | + <!-- "Parameter comment must end with a full stop" is such a pebble in the shoe. --> |
| 26 | + <exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/> |
| 27 | + <exclude name="Squiz.PHP.DisallowSizeFunctionsInLoops.Found"/> |
| 28 | + <!-- Aligning the 1500 lines of public_suffix_list.php adds a lot of unnecessary noise and then |
| 29 | + the actual indentation is not even correct because the rule seems to cound bytes, not printable |
| 30 | + UTF-8 characteds. --> |
| 31 | + <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned"/> |
| 32 | + <exclude name="WordPress.Files.FileName.InvalidClassFileName"/> |
| 33 | + <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> |
| 34 | + <exclude name="WordPress.PHP.YodaConditions.NotYoda"/> |
| 35 | + <exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/> |
| 36 | + <exclude name="WordPress.WP.AlternativeFunctions"/> |
| 37 | + <exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fclose"/> |
| 38 | + </rule> |
| 39 | +</ruleset> |
0 commit comments