We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 086b3da + 1d378b2 commit f6a4a16Copy full SHA for f6a4a16
WordPress-VIP-Go/ruleset.xml
@@ -251,6 +251,15 @@
251
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
252
<severity>0</severity>
253
</rule>
254
+
255
+ <!-- Do not report on undefined variables before require nor in file scope. -->
256
+ <rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
257
+ <properties>
258
+ <property name="allowUnusedVariablesBeforeRequire" value="true"/>
259
+ <property name="allowUndefinedVariablesInFileScope" value="true"/>
260
+ </properties>
261
+ </rule>
262
263
<rule ref="WordPress.DB.SlowDBQuery.slow_db_query_meta_key">
264
<!-- We are silencing this one because VIP Go has a combined index on meta_key, meta_value-->
265
0 commit comments