annotate vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml @ 19:fa3358dc1485 tip

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