|
71 | 71 | <!-- Replaced by the Squiz version of the sniff which doesn't enforce whitespace around array index keys. -->
|
72 | 72 | <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
|
73 | 73 |
|
74 |
| - <!-- Disabled as the preference for this repo is no spaces on the inside of parentheses. |
75 |
| - Once WPCS 3.0.0 comes out, the opposite can be enforced via the |
76 |
| - NormalizedArrays.Arrays.ArrayBraceSpacing sniff from PHPCSExtra. --> |
77 |
| - <exclude name="WordPress.Arrays.ArrayDeclarationSpacing.NoSpaceAfterArrayOpener"/> |
78 |
| - <exclude name="WordPress.Arrays.ArrayDeclarationSpacing.NoSpaceBeforeArrayCloser"/> |
79 |
| - |
80 | 74 | <!-- Let spacing before a cast be determined by the operator/parentheses whitespace rule
|
81 | 75 | of the preceding character. -->
|
82 | 76 | <exclude name="WordPress.WhiteSpace.CastStructureSpacing"/>
|
|
86 | 80 | ========================================================================== -->
|
87 | 81 | <exclude name="WordPress.PHP.YodaConditions"/>
|
88 | 82 | <!-- A while loop is the only valid control structure where an assignment can be justified. -->
|
89 |
| - <exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> |
| 83 | + <exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> |
90 | 84 |
|
91 | 85 | <!-- ==========================================================================
|
92 | 86 | Miscellaneous other exclusions.
|
|
96 | 90 | <exclude name="WordPress.Files.FileName"/>
|
97 | 91 |
|
98 | 92 | <!-- WPCS demands long arrays. We'll be using short arrays from now on. -->
|
99 |
| - <exclude name="Generic.Arrays.DisallowShortArraySyntax"/> |
| 93 | + <exclude name="Universal.Arrays.DisallowShortArraySyntax"/> |
100 | 94 |
|
101 | 95 | <!-- Ignore WP specific sniffs as Requests is also used outside of a WP context. -->
|
102 | 96 | <exclude name="WordPress.WP"/>
|
|
133 | 127 | </properties>
|
134 | 128 | </rule>
|
135 | 129 |
|
| 130 | + <rule ref="NormalizedArrays.Arrays.ArrayBraceSpacing"> |
| 131 | + <properties> |
| 132 | + <property name="spacesSingleLine" value="0"/> |
| 133 | + </properties> |
| 134 | + </rule> |
| 135 | + |
136 | 136 | <!-- Include replacement sniffs which enforce the opposite of WPCS for several excluded sniffs. -->
|
137 | 137 | <rule ref="Squiz.WhiteSpace.ControlStructureSpacing">
|
138 | 138 | <exclude name="Squiz.WhiteSpace.ControlStructureSpacing.LineAfterClose"/>
|
|
173 | 173 | <!-- Allow error silencing only for a select group of functions. -->
|
174 | 174 | <rule ref="WordPress.PHP.NoSilencedErrors">
|
175 | 175 | <properties>
|
176 |
| - <property name="custom_whitelist" type="array"> |
| 176 | + <property name="customAllowedFunctionsList" type="array"> |
177 | 177 | <element value="gzdecode"/>
|
178 | 178 | <element value="gzinflate"/>
|
179 | 179 | <element value="gzuncompress"/>
|
|
0 commit comments