Mercurial > hg > cmmr2012-drupal-site
diff vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml Thu Feb 28 13:11:55 2019 +0000 +++ b/vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml Thu May 09 15:34:47 2019 +0100 @@ -1,25 +1,27 @@ <?xml version="1.0"?> <ruleset name="DrupalPractice"> - <description>Drupal best practice checks</description> + <description>Drupal best practice checks</description> - <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> - <arg name="encoding" value="utf-8"/> + <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> + <arg name="encoding" value="utf-8"/> - <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> + <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> - <rule ref="Internal.NoCodeFound"> - <!-- Empty files are fine, might be used for testing. --> - <exclude-pattern>*</exclude-pattern> - </rule> + <autoload>../Drupal/autoload.php</autoload> - <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> - <!-- Do not run this sniff on template files. --> - <exclude-pattern>*.tpl.php</exclude-pattern> - </rule> + <rule ref="Internal.NoCodeFound"> + <!-- Empty files are fine, might be used for testing. --> + <exclude-pattern>*</exclude-pattern> + </rule> - <!-- Ignore various version control directories. --> - <exclude-pattern>*/\.git/*</exclude-pattern> - <exclude-pattern>*/\.svn/*</exclude-pattern> - <exclude-pattern>*/\.hg/*</exclude-pattern> - <exclude-pattern>*/\.bzr/*</exclude-pattern> + <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> + <!-- Do not run this sniff on template files. --> + <exclude-pattern>*.tpl.php</exclude-pattern> + </rule> + + <!-- Ignore various version control directories. --> + <exclude-pattern>*/\.git/*</exclude-pattern> + <exclude-pattern>*/\.svn/*</exclude-pattern> + <exclude-pattern>*/\.hg/*</exclude-pattern> + <exclude-pattern>*/\.bzr/*</exclude-pattern> </ruleset>