File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 239
239
<severity >0</severity >
240
240
</rule >
241
241
242
- <!-- Do not report on undefined variables before require nor in file scope. -->
243
- <rule ref =" VariableAnalysis.CodeAnalysis.VariableAnalysis" >
244
- <properties >
245
- <property name =" allowUnusedVariablesBeforeRequire" value =" true" />
246
- <property name =" allowUndefinedVariablesInFileScope" value =" true" />
247
- </properties >
248
- </rule >
249
-
250
242
<rule ref =" WordPress.DB.SlowDBQuery.slow_db_query_meta_key" >
251
243
<!-- We are silencing this one because VIP Go has a combined index on meta_key, meta_value-->
252
244
<severity >0</severity >
Original file line number Diff line number Diff line change 145
145
146
146
<!-- Include VariableAnalysis checks -->
147
147
<rule ref =" VariableAnalysis" />
148
+ <rule ref =" VariableAnalysis.CodeAnalysis.VariableAnalysis" >
149
+ <properties >
150
+ <!-- Do not report on unused variables before require nor usused or undefined variables in file scope. -->
151
+ <property name =" allowUnusedVariablesBeforeRequire" value =" true" />
152
+ <property name =" allowUndefinedVariablesInFileScope" value =" true" />
153
+ </properties >
154
+ </rule >
148
155
149
156
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
150
157
<rule ref =" WordPressVIPMinimum.Variables.VariableAnalysis.DeprecatedSniff" >
You can’t perform that action at this time.
0 commit comments