-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
22 lines (19 loc) · 1.07 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="DrupalCollaboraOnline">
<description>Modified PHP CodeSniffer configuration based on Drupal.</description>
<arg name="extensions" value="inc,install,module,php,theme,yml,json"/>
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>./web/*</exclude-pattern>
<file>.</file>
<rule ref="vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml">
<!-- Accept file doc comment with copyright. -->
<exclude name="Drupal.Commenting.FileComment.NamespaceNoFileDoc"/>
<exclude name="Drupal.Commenting.FileComment.WrongStyle"/>
<!-- Accept imports order from PhpStorm. -->
<exclude name="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses"/>
<!-- Keep existing identifiers, as renaming would be disruptive. -->
<exclude name="Drupal.NamingConventions.ValidFunctionName.InvalidName"/>
<exclude name="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/>
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
</rule>
</ruleset>