forked from pfrenssen/coder
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml.dist
39 lines (33 loc) · 1.5 KB
/
phpcs.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<ruleset name="drupal_coder">
<description>The coding standard for coder_sniffer.</description>
<file>coder_sniffer</file>
<exclude-pattern>*/Test/*</exclude-pattern>
<rule ref="PHPCS" />
<!-- The following sniffs are disabled because we don't want them -->
<rule ref="PEAR.Commenting.FileComment">
<exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingVersion"/>
</rule>
<rule ref="PEAR.Commenting.ClassComment">
<exclude name="PEAR.Commenting.ClassComment.CategoryTagOrder"/>
<exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
</rule>
<rule ref="PEAR.NamingConventions.ValidFunctionName">
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<rule ref="Generic.Commenting.Todo">
<exclude name="Generic.Commenting.Todo.TaskFound"/>
<exclude name="Generic.Commenting.Todo.CommentFound"/>
</rule>
<!-- The following sniffs are disabled because Coder is not compliant yet, see
https://www.drupal.org/node/2734539 -->
<rule ref="PEAR.Commenting.FunctionComment.MissingParamComment">
<exclude-pattern>*/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php</exclude-pattern>
</rule>
</ruleset>