Skip to content

Instantly share code, notes, and snippets.

@paulgibbs paulgibbs/phpcs.xml.dist
Last active Feb 11, 2018

Embed
What would you like to do?
BP Nouveau phpcs.xml.dist
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>Apply WordPress Coding Standards to all Core files</description>
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid" />
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" />
</rule>
<rule ref="WordPress.CodeAnalysis.EmptyStatement"/>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="ignoreIndentationTokens" type="array" value="T_HEREDOC,T_NOWDOC,T_INLINE_HTML,T_DOC_COMMENT_CLOSE_TAG,T_DOC_COMMENT_OPEN_TAG,T_DOC_COMMENT_STAR,T_DOC_COMMENT_STRING,T_DOC_COMMENT_TAG,T_DOC_COMMENT_WHITESPACE,T_DOC_COMMENT,T_COMMENT"/>
</properties>
</rule>
<arg name="extensions" value="php"/>
<arg value="ps"/>
<file>.</file>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.