Mercurial > hg > isophonics-drupal-site
annotate vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml @ 7:848c88cfe644
More layout
author | Chris Cannam |
---|---|
date | Fri, 05 Jan 2018 13:59:44 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
rev | line source |
---|---|
Chris@0 | 1 <?xml version="1.0"?> |
Chris@0 | 2 <ruleset name="DrupalPractice"> |
Chris@0 | 3 <description>Drupal best practice checks</description> |
Chris@0 | 4 |
Chris@0 | 5 <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> |
Chris@0 | 6 <arg name="encoding" value="utf-8"/> |
Chris@0 | 7 |
Chris@0 | 8 <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> |
Chris@0 | 9 |
Chris@0 | 10 <rule ref="Internal.NoCodeFound"> |
Chris@0 | 11 <!-- Empty files are fine, might be used for testing. --> |
Chris@0 | 12 <exclude-pattern>*</exclude-pattern> |
Chris@0 | 13 </rule> |
Chris@0 | 14 |
Chris@0 | 15 <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> |
Chris@0 | 16 <!-- Do not run this sniff on template files. --> |
Chris@0 | 17 <exclude-pattern>*.tpl.php</exclude-pattern> |
Chris@0 | 18 </rule> |
Chris@0 | 19 |
Chris@0 | 20 <!-- Ignore various version control directories. --> |
Chris@0 | 21 <exclude-pattern>*/\.git/*</exclude-pattern> |
Chris@0 | 22 <exclude-pattern>*/\.svn/*</exclude-pattern> |
Chris@0 | 23 <exclude-pattern>*/\.hg/*</exclude-pattern> |
Chris@0 | 24 <exclude-pattern>*/\.bzr/*</exclude-pattern> |
Chris@0 | 25 </ruleset> |