comparison vendor/drupal/coder/phpcs.xml.dist @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children a9cd425dd02b
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?xml version="1.0"?>
2 <ruleset name="drupal_coder">
3 <description>The coding standard for coder_sniffer.</description>
4
5 <file>coder_sniffer</file>
6
7 <exclude-pattern>*/Test/*</exclude-pattern>
8
9 <rule ref="PHPCS" />
10
11 <!-- The following sniffs are disabled because we don't want them -->
12 <rule ref="PEAR.Commenting.FileComment">
13 <exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/>
14 <exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/>
15 <exclude name="PEAR.Commenting.FileComment.MissingVersion"/>
16 </rule>
17 <rule ref="PEAR.Commenting.ClassComment">
18 <exclude name="PEAR.Commenting.ClassComment.CategoryTagOrder"/>
19 <exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
20 <exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
21 </rule>
22 <rule ref="PEAR.NamingConventions.ValidFunctionName">
23 <exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
24 </rule>
25 <rule ref="Generic.Files.LineLength">
26 <exclude name="Generic.Files.LineLength.TooLong"/>
27 </rule>
28 <rule ref="Generic.Commenting.Todo">
29 <exclude name="Generic.Commenting.Todo.TaskFound"/>
30 <exclude name="Generic.Commenting.Todo.CommentFound"/>
31 </rule>
32
33 <!-- The following sniffs are disabled because Coder is not compliant yet, see
34 https://www.drupal.org/node/2734539 -->
35 <rule ref="PEAR.Commenting.FunctionComment.MissingParamComment">
36 <exclude-pattern>*/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php</exclude-pattern>
37 </rule>
38
39 </ruleset>