Skip to content

Commit 31e4e00

Browse files
committed
Updated Coding Standards
1 parent 5e22288 commit 31e4e00

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

phpcs.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<!-- Exclude traits from the PHP SDK. -->
1515
<exclude-pattern>class-convertkit-api-traits.php</exclude-pattern>
1616

17-
<!-- Check that code meets WordPress-Extra standards. -->
18-
<rule ref="WordPress-Extra">
17+
<!-- Check that code meets WordPress standards - this includes core, docs and extra. -->
18+
<rule ref="WordPress">
1919
<!--
2020
We may want a middle ground though. The best way to do this is add the
2121
entire ruleset, then rule by rule, remove ones that don't suit a project.
@@ -33,13 +33,11 @@
3333
<exclude name="WordPress.Security.EscapeOutput"/>
3434
-->
3535
<exclude name="WordPress.PHP.YodaConditions" />
36+
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query" />
3637
<exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose" />
3738
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody" />
3839
</rule>
3940

40-
<!-- Check that code is documented to WordPress Standards. -->
41-
<rule ref="WordPress-Docs"/>
42-
4341
<!-- Add in some extra rules from other standards. -->
4442
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
4543
<rule ref="Generic.Commenting.Todo"/>

0 commit comments

Comments
 (0)