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