Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Last active February 11, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgibbs/9d6c1f1cfc5d4765852c0e38a711e1e5 to your computer and use it in GitHub Desktop.
Save paulgibbs/9d6c1f1cfc5d4765852c0e38a711e1e5 to your computer and use it in GitHub Desktop.
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