forked from fago/rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
27 lines (22 loc) · 1.02 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="rules">
<description>Default PHP CodeSniffer configuration for Rules.</description>
<file>.</file>
<arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/>
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName">
<!-- Annotations must use the same property names as in the configuration. -->
<exclude-pattern>src/Annotation</exclude-pattern>
<exclude-pattern>src/Core/Annotation</exclude-pattern>
<exclude-pattern>src/Ui/RulesUiDefinition.php</exclude-pattern>
</rule>
<!--Blacklist of coding standard rules that are not yet fixed. -->
<rule ref="Drupal">
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
</rule>
<rule ref="DrupalPractice">
<!-- Allow empty lines after comments, we don't care. -->
<exclude name="DrupalPractice.Commenting.CommentEmptyLine"/>
</rule>
<!-- We always want short array syntax only. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
</ruleset>