comparison vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children af1871eacc83
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?xml version="1.0"?>
2 <ruleset name="DrupalPractice">
3 <description>Drupal best practice checks</description>
4
5 <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
6 <arg name="encoding" value="utf-8"/>
7
8 <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/>
9
10 <rule ref="Internal.NoCodeFound">
11 <!-- Empty files are fine, might be used for testing. -->
12 <exclude-pattern>*</exclude-pattern>
13 </rule>
14
15 <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable">
16 <!-- Do not run this sniff on template files. -->
17 <exclude-pattern>*.tpl.php</exclude-pattern>
18 </rule>
19
20 <!-- Ignore various version control directories. -->
21 <exclude-pattern>*/\.git/*</exclude-pattern>
22 <exclude-pattern>*/\.svn/*</exclude-pattern>
23 <exclude-pattern>*/\.hg/*</exclude-pattern>
24 <exclude-pattern>*/\.bzr/*</exclude-pattern>
25 </ruleset>