-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathphpcs.xml
46 lines (41 loc) · 3.02 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
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="drupal-project">
<description>Default PHP CodeSniffer configuration for Drupal project.</description>
<file>docroot/modules/custom</file>
<file>docroot/themes/custom</file>
<file>docroot/profiles/custom</file>
<arg name="extensions" value="inc,install,module,php,profile,test,theme"/>
<!--Exclude third party code.-->
<exclude-pattern>./app/*</exclude-pattern>
<exclude-pattern>./bin/*</exclude-pattern>
<exclude-pattern>./build/*</exclude-pattern>
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>*/fontello/*</exclude-pattern>
<exclude-pattern>docroot/themes/custom/mass_admin_theme/css/base/fonts.css</exclude-pattern>
<!-- Drupal sniffs -->
<rule ref="vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml"/>
<rule ref="vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml"/>
<!-- Exceptions which keep us sane. -->
<rule ref="Drupal.Commenting.FunctionComment.Missing"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.FileComment.Missing"><severity>0</severity></rule>
<rule ref="Drupal.Classes.FullyQualifiedNamespace.UseStatementMissing"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.ClassComment.Missing"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.DocComment.MissingShort"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.FunctionComment.MissingReturnType"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.FunctionComment.ParamMissingDefinition"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.InlineComment.InvalidEndChar"><severity>0</severity></rule>
<rule ref="Drupal.Arrays.Array.LongLineDeclaration"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.VariableComment.Missing"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"><severity>0</severity></rule>
<rule ref="Drupal.Classes.UseGlobalClass.RedundantUseStatement"><severity>0</severity></rule>
<rule ref="Drupal.Semantics.FunctionTriggerError.TriggerErrorTextLayoutRelaxed"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.FunctionComment.MissingParamComment"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.Deprecated.IncorrectTextLayout"><severity>0</severity></rule>
<rule ref="Drupal.Commenting.Deprecated.DeprecatedMissingSeeTag"><severity>0</severity></rule>
<rule ref="Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak"><severity>0</severity></rule>
<!-- New with Coder 8.3.14. Fix our violations and then remove the lines below-->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed"><severity>0</severity></rule>
<rule ref="DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize"><severity>0</severity></rule>
<rule ref="SlevomatCodingStandard.PHP.ShortList.LongListUsed"><severity>0</severity></rule>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses"><severity>0</severity></rule>
</ruleset>