Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <ruleset name="DrupalPractice"> | 2 <ruleset name="DrupalPractice"> |
3 <description>Drupal best practice checks</description> | 3 <description>Drupal best practice checks</description> |
4 | 4 |
5 <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> | 5 <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> |
6 <arg name="encoding" value="utf-8"/> | 6 <arg name="encoding" value="utf-8"/> |
7 | 7 |
8 <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> | 8 <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> |
9 | 9 |
10 <rule ref="Internal.NoCodeFound"> | 10 <autoload>../Drupal/autoload.php</autoload> |
11 <!-- Empty files are fine, might be used for testing. --> | |
12 <exclude-pattern>*</exclude-pattern> | |
13 </rule> | |
14 | 11 |
15 <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> | 12 <rule ref="Internal.NoCodeFound"> |
16 <!-- Do not run this sniff on template files. --> | 13 <!-- Empty files are fine, might be used for testing. --> |
17 <exclude-pattern>*.tpl.php</exclude-pattern> | 14 <exclude-pattern>*</exclude-pattern> |
18 </rule> | 15 </rule> |
19 | 16 |
20 <!-- Ignore various version control directories. --> | 17 <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> |
21 <exclude-pattern>*/\.git/*</exclude-pattern> | 18 <!-- Do not run this sniff on template files. --> |
22 <exclude-pattern>*/\.svn/*</exclude-pattern> | 19 <exclude-pattern>*.tpl.php</exclude-pattern> |
23 <exclude-pattern>*/\.hg/*</exclude-pattern> | 20 </rule> |
24 <exclude-pattern>*/\.bzr/*</exclude-pattern> | 21 |
22 <!-- Ignore various version control directories. --> | |
23 <exclude-pattern>*/\.git/*</exclude-pattern> | |
24 <exclude-pattern>*/\.svn/*</exclude-pattern> | |
25 <exclude-pattern>*/\.hg/*</exclude-pattern> | |
26 <exclude-pattern>*/\.bzr/*</exclude-pattern> | |
25 </ruleset> | 27 </ruleset> |