Skip to content

Commit

Permalink
Merge pull request #690 from Automattic/update/variableanalysis-confi…
Browse files Browse the repository at this point in the history
…gure

Update WordPress-VIP-Go/ruleset.xml to configure VariableAnalysis
  • Loading branch information
rebeccahum authored Jun 22, 2021
2 parents 086b3da + 1d378b2 commit f6a4a16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions WordPress-VIP-Go/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
<severity>0</severity>
</rule>

<!-- Do not report on undefined variables before require nor in file scope. -->
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<properties>
<property name="allowUnusedVariablesBeforeRequire" value="true"/>
<property name="allowUndefinedVariablesInFileScope" value="true"/>
</properties>
</rule>

<rule ref="WordPress.DB.SlowDBQuery.slow_db_query_meta_key">
<!-- We are silencing this one because VIP Go has a combined index on meta_key, meta_value-->
<severity>0</severity>
Expand Down

0 comments on commit f6a4a16

Please sign in to comment.