|
4 | 4 | <description>A custom set of code standard rules to check for Inpsyde Codex.</description> |
5 | 5 |
|
6 | 6 | <!-- TRUE, FALSE, NULL are constant, we write in uppercase. --> |
7 | | - <rule ref="Generic.PHP.UpperCaseConstant" /> |
| 7 | + <rule ref="Generic.PHP.UpperCaseConstant"/> |
8 | 8 |
|
9 | 9 | <!-- Allow . in hook names --> |
10 | 10 | <rule ref="WordPress.NamingConventions.ValidHookName"> |
|
16 | 16 | <!-- Include the WordPress ruleset, with exclusions. --> |
17 | 17 | <rule ref="WordPress"> |
18 | 18 |
|
19 | | - <exclude name="WordPress.PHP.YodaConditions" /> |
| 19 | + <exclude name="WordPress.PHP.YodaConditions"/> |
20 | 20 |
|
21 | 21 | <exclude name="WordPress.Files.FileName"/> |
22 | 22 |
|
23 | | - <exclude name="Generic.PHP.LowerCaseConstant" /> |
24 | | - <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" /> |
25 | | - <exclude name="Generic.Commenting.DocComment.MissingShort" /> |
| 23 | + <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/> |
| 24 | + <exclude name="Generic.Commenting.DocComment.MissingShort"/> |
26 | 25 | <exclude name="Generic.PHP.DisallowShortOpenTag"/> |
27 | 26 |
|
28 | 27 | <exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/> |
29 | 28 | <exclude name="Squiz.Commenting.FileComment.Missing"/> |
30 | 29 |
|
31 | | - <exclude name="PEAR.Functions.FunctionCallSignature" /> |
| 30 | + <exclude name="PEAR.Functions.FunctionCallSignature"/> |
32 | 31 |
|
33 | 32 | <!-- Remove spaces before types check. --> |
34 | | - <exclude name="Squiz.Commenting.VariableComment.VarIndent" /> |
35 | | - <exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParamType" /> |
36 | | - <exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParams" /> |
| 33 | + <exclude name="Squiz.Commenting.VariableComment.VarIndent"/> |
| 34 | + <exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParamType"/> |
| 35 | + <exclude name="Squiz.Commenting.FunctionComment.SpacingBeforeParams"/> |
37 | 36 |
|
38 | 37 | <!-- Exclude Full Stops on inline comment. --> |
39 | | - <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" /> |
40 | | - <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" /> |
| 38 | + <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/> |
| 39 | + <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/> |
41 | 40 |
|
42 | 41 | <!-- Remove empty line not required before block comment --> |
43 | | - <exclude name="Squiz.Commenting.BlockComment.HasEmptyLineBefore" /> |
| 42 | + <exclude name="Squiz.Commenting.BlockComment.HasEmptyLineBefore"/> |
44 | 43 | <!-- Remove rule for /** style for each var --> |
45 | | - <exclude name="Squiz.Commenting.VariableComment.WrongStyle" /> |
| 44 | + <exclude name="Squiz.Commenting.VariableComment.WrongStyle"/> |
46 | 45 |
|
47 | 46 | <!-- <exclude name="WordPress.XSS.EscapeOutput" /> --> |
48 | | - <exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect" /> |
49 | | - <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions" /> |
50 | | - <exclude name="WordPress.Arrays.ArrayDeclaration.KeyNotAligned" /> |
| 47 | + <exclude name="WordPress.WhiteSpace.ScopeIndent.Incorrect"/> |
| 48 | + <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/> |
| 49 | + <exclude name="WordPress.Arrays.ArrayDeclaration.KeyNotAligned"/> |
51 | 50 | <!-- Remove spaces instead of tabs check --> |
52 | | - <exclude name="WordPress.Arrays.ArrayDeclaration.ValueNotAligned" /> |
53 | | - <exclude name="WordPress.Arrays.ArrayDeclaration.CloseBraceNotAligned" /> |
| 51 | + <exclude name="WordPress.Arrays.ArrayDeclaration.ValueNotAligned"/> |
| 52 | + <exclude name="WordPress.Arrays.ArrayDeclaration.CloseBraceNotAligned"/> |
54 | 53 | <!-- <exclude name="WordPress.Variables.GlobalVariables" /> --> |
55 | 54 | </rule> |
56 | 55 |
|
|
0 commit comments