Skip to content

Commit

Permalink
Make f.t ruleset work with NEW wpcs 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Nov 21, 2023
1 parent 888513c commit 0fb0d4c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions figurentheater/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="WordPress.PHP.DisallowShortTernary" />
</rule>

<rule ref="Universal">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Namespaces.EnforceCurlyBraceSyntax" />
<exclude name="Universal.UseStatements.DisallowUseClass.FoundWithoutAlias" />
<exclude name="Universal.UseStatements.DisallowUseClass.FromGlobalNamespace" />
<exclude name="Universal.UseStatements.DisallowUseFunction.FromGlobalNamespace" />
</rule>

<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />

Expand Down Expand Up @@ -66,10 +74,4 @@
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
</rule>

<!-- Prevent deprecation notice when the sniff is not explicitely included. -->
<!-- 11.11.2019: 2.2.0: "The deprecated sniff will be removed in WPCS 3.0.0." ;) -->
<rule ref="WordPress.WP.TimezoneChange.DeprecatedSniff">
<severity>0</severity>
</rule>

</ruleset>

0 comments on commit 0fb0d4c

Please sign in to comment.