Skip to content

Commit

Permalink
Merge pull request #620 from Automattic/rebecca/remove_unused
Browse files Browse the repository at this point in the history
Silence VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
  • Loading branch information
rebeccahum authored Jan 28, 2021
2 parents 91782b6 + 288159a commit fe2c16e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WordPress-VIP-Go/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable">
<severity>3</severity>
</rule>
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
<severity>1</severity>
</rule>
<rule ref="WordPressVIPMinimum.UserExperience.AdminBarRemoval">
<severity>3</severity>
</rule>
Expand All @@ -260,6 +257,9 @@
</rule>

<!-- Silence is golden, these don't affect us on VIP Go -->
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
<severity>0</severity>
</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 fe2c16e

Please sign in to comment.