|
10 | 10 | -->
|
11 | 11 | <arg name="colors" />
|
12 | 12 | <arg name="tab-width" value="2" />
|
13 |
| - <!-- Custom line length validation --> |
14 | 13 | <rule ref="Squiz.PHP.DiscouragedFunctions" />
|
| 14 | + <!-- Custom line length validation --> |
15 | 15 | <rule ref="Generic.Files.LineLength">
|
16 | 16 | <properties>
|
17 | 17 | <property name="lineLimit" value="100" />
|
|
33 | 33 | <exclude name="Squiz.Commenting.LongConditionClosingComment"/>
|
34 | 34 | </rule>
|
35 | 35 | <rule ref="WordPress">
|
36 |
| - <exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed" /> |
37 | 36 | <exclude name="Generic.Commenting.DocComment.ShortNotCapital" />
|
38 | 37 | <exclude name="Generic.Commenting.DocComment.MissingShort" />
|
39 | 38 | <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
|
40 | 39 | <exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine" />
|
41 |
| - <exclude name="Generic.PHP.NoSilencedErrors.Discouraged" /> |
42 |
| - <exclude name="Generic.Strings.UnnecessaryStringConcat.Found" /> |
43 | 40 | <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
|
44 |
| - <exclude name="PSR2.Methods.MethodDeclaration.Underscore" /> |
45 | 41 | <exclude name="Squiz.Commenting.ClassComment.Missing" />
|
46 |
| - <exclude name="Squiz.Commenting.FileComment.Missing" /> |
47 | 42 | <exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
|
48 |
| - <exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop" /> |
49 | 43 | <exclude name="Squiz.Commenting.FunctionCommentThrowTag" />
|
50 | 44 | <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
|
51 |
| - <exclude name="Squiz.Commenting.LongConditionClosingComment.SpacingBefore" /> |
52 | 45 | <exclude name="Squiz.Commenting.PostStatementComment.Found" />
|
53 |
| - <exclude name="Squiz.Commenting.VariableComment.Missing" /> |
54 | 46 | <exclude name="Squiz.PHP.CommentedOutCode.Found" />
|
55 | 47 | <exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
|
56 |
| - <exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" /> |
57 |
| - <exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterEnd" /> |
58 |
| - <exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" /> |
59 | 48 | <exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
|
60 |
| - <exclude name="Squiz.PHP.NonExecutableCode.Unreachable" /> |
61 | 49 | <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
|
62 |
| - <exclude name="WordPress.CodeAnalysis.AssignmentInCondition.Found" /> |
63 |
| - <exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" /> |
64 | 50 | <exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
|
65 | 51 | <exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
|
66 | 52 | <exclude name="WordPress.DB.DirectDatabaseQuery.SchemaChange" />
|
67 |
| - <exclude name="WordPress.DB.PreparedSQL" /> |
68 | 53 | <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
|
69 | 54 | <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
|
70 |
| - <exclude name="WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid" /> |
71 | 55 | <exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
|
72 |
| - <exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" /> |
73 |
| - <exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" /> |
74 |
| - <exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" /> |
75 |
| - <exclude name="WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_error_reporting" /> |
76 | 56 | <exclude name="WordPress.PHP.DiscouragedPHPFunctions" />
|
77 |
| - <!-- TODO: refactor to eliminate use of `exec` for compatibility w/shared hosts --> |
78 |
| - <exclude name="WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec" /> |
79 |
| - <!-- TODO: refactor to eliminate use of `shell_exec` for compat w/shared hosts --> |
80 |
| - <exclude name="WordPress.PHP.DontExtract.extract_extract" /> |
81 |
| - <exclude name="WordPress.PHP.StrictComparisons.LooseComparison" /> |
82 |
| - <exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" /> |
83 | 57 | <exclude name="WordPress.PHP.YodaConditions.NotYoda" />
|
84 | 58 | <!-- Forcing exceptions to be escaped is bad practice.
|
85 | 59 | See: https://github.com/WordPress/WordPress-Coding-Standards/issues/2374 -->
|
86 | 60 | <exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
|
87 | 61 | <exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped" />
|
88 |
| - <exclude name="WordPress.Security.NonceVerification" /> |
89 | 62 | <exclude name="WordPress.Security.ValidatedSanitizedInput" />
|
90 | 63 | <exclude name="WordPress.WP.AlternativeFunctions" />
|
91 |
| - <exclude name="Generic.Arrays.DisallowShortArraySyntax" /> |
92 | 64 | <exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
|
93 | 65 | </rule>
|
94 | 66 | <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
|
|
0 commit comments