Skip to content

Commit

Permalink
Add additional rules for phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark authored Oct 18, 2021
1 parent 978d61d commit bbe5a84
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,26 @@
<rule ref="WordPress-Extra"></rule>
<rule ref="WordPress-Docs"></rule>
<rule ref="WordPress-Core"></rule>

<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="pods"/>
</properties>
</rule>

<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="pods"/>
</properties>
</rule>

<rule ref="WordPress.Files">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>

<rule ref="Squiz.PHP">
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
</rule>
</ruleset>

0 comments on commit bbe5a84

Please sign in to comment.