-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
38 lines (30 loc) · 1.35 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
name="custom">
<description>Project specific overrides.</description>
<config name="ignore_warnings_on_exit" value="0" />
<config name="ignore_errors_on_exit" value="0" />
<arg name="ignore" value="*.css,*.md,*.txt" />
<arg name="colors" />
<arg name="extensions" value="php/php,inc/php,module/php,profile/php,theme/php,install/php,engine/php" />
<rule ref="Drupal">
<exclude name="Drupal.Commenting.ClassComment.Missing" />
<exclude name="Drupal.Commenting.FunctionComment.Missing" />
<exclude name="Drupal.Commenting.DocComment.MissingShort" />
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment" />
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment" />
<exclude name="Drupal.Commenting.FunctionComment.ParamMissingDefinition" />
<exclude name="Drupal.Commenting.VariableComment.Missing" />
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Version" />
</rule>
<rule ref="Drupal.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
</properties>
</rule>
<rule ref="DrupalPractice" />
<file>./src/</file>
<file>./tests/src/</file>
</ruleset>