This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpcs.xml.dist
38 lines (35 loc) · 1.73 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"?>
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<ruleset name="Drupal">
<description>Drupal coding standard</description>
<!-- All PHP code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/>
<!-- Look for *.php files only. -->
<arg name="extensions" value="php"/>
<!-- Use colors in output. -->
<arg name="colors"/>
<!-- Show sniff codes in all reports. -->
<arg value="s"/>
<!-- Show progress of the run. -->
<arg value="p"/>
<!-- Scan directories with PHP code only. -->
<file>./src/</file>
<file>./tests/</file>
<!-- Include the whole Drupal standard -->
<rule ref="Drupal">
<!--Ignore "Missing short description in doc comment". -->
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
<!--Ignore "Doc comment short description must be on a single line, further text should be a separate paragraph". -->
<exclude name="Drupal.Commenting.DocComment.ShortSingleLine"/>
<!--Ignore "Missing parameter comment". -->
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
<!--Ignore "Description for the @return value is missing". -->
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
<!--Ignore "Expected "%s" but found "%s" for parameter type". -->
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
<!--Ignore "Expected "%s" but found "%s" for function return type". -->
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
<!--Ignore "Expected "%s" but found "%s" for @var tag in member variable comment". -->
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/>
</rule>
</ruleset>