-
Notifications
You must be signed in to change notification settings - Fork 14
/
.phpcs.xml
43 lines (42 loc) · 1.77 KB
/
.phpcs.xml
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
40
41
42
43
<?xml version="1.0"?>
<ruleset>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<file>web/modules/custom</file>
<file>web/profiles/dpl_cms</file>
<file>web/themes/custom</file>
<!-- Exclude built assets used by Novel -->
<exclude-pattern>web/themes/custom/novel/assets/*</exclude-pattern>
<file>assets/all.settings.php</file>
<rule ref="Drupal" />
<rule ref="DrupalPractice"/>
<rule ref="Drupal.Commenting">
<!--
We want to be able to use strict typing even in hooks.
But that conflicts with the Drupal Hook Comment rules.
By disabling the rules we are able to document params and return.
-->
<exclude name="Drupal.Commenting.HookComment.HookParamDoc"/>
<exclude name="Drupal.Commenting.HookComment.HookReturnDoc"/>
<exclude name="Drupal.Commenting.HookComment.HookCommentFormat"/>
<exclude name="Drupal.Commenting.FileComment.Missing"/>
<!--
Disable variable checking rules which both overlap and conflict with
PHPStan as suggested by Drupal Coder developers:
https://www.drupal.org/project/coder/issues/3253472#comment-14508517
-->
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/>
<exclude name="Drupal.Commenting.VariableComment.IncorrectVarType"/>
<!--
Disable deprecation related sniffs that are seem to Drupal Core development.
-->
<!--
Do not require specifying when deprecated function will be removed.
We do not enforce this whin the project.
-->
<exclude name="Drupal.Commenting.Deprecated.IncorrectTextLayout"/>
<!--
Do not require a @see tag with link to Drupal.org for deprecation.
-->
<exclude name="Drupal.Commenting.Deprecated.DeprecatedMissingSeeTag"/>
</rule>
</ruleset>