forked from Chi-teck/drupal-code-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
34 lines (30 loc) · 1.55 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
<?xml version="1.0"?>
<ruleset name="Drupal Code Generator">
<description>Drupal Code Generator coding standard</description>
<arg name="colors"/>
<file>./scripts</file>
<file>./src</file>
<file>./tests</file>
<rule ref="DrupalExtended">
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator.MultiLineTernaryOperatorNotUsed"/>
<!-- Conflicts with PHP attributes. -->
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
<exclude name="Drupal.Commenting.ClassComment.Short"/>
<!-- False positives when class have PHP attributes. -->
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
<!-- Conflicts with {@selfdoc} -->
<exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Drupal.Commenting.DocComment.ShortFullStop"/>
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator.TrailingMultiLineTernaryOperatorUsed"/>
</rule>
<rule ref="SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal">
<exclude-pattern>./src/Exception</exclude-pattern>
</rule>
<!-- Exclude fixtures. -->
<exclude-pattern>*/_*</exclude-pattern>
</ruleset>