-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
phpcs-ruleset.xml
29 lines (24 loc) · 1.37 KB
/
phpcs-ruleset.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
<?xml version="1.0"?>
<!-- PHP_CodeSniffer standard -->
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<ruleset name="Invoicing">
<description>DrupalDriver coding standard</description>
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal">
<!-- Ignore the requirement to use the null coalescing operator. This has been introduced in PHP 7.0 but we still support 5.6. -->
<exclude name="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed" />
<!-- Ignore the requirement to use the shorthand list syntax. This has been introduced in PHP 7.1 but we still support 5.6. -->
<exclude name="SlevomatCodingStandard.PHP.ShortList.LongListUsed" />
</rule>
<!-- Core drivers need to set a server's remote address. -->
<rule ref="Drupal.Semantics.RemoteAddress.RemoteAddress">
<exclude-pattern>src/Drupal/Driver/Cores/*.php</exclude-pattern>
</rule>
<exclude-pattern>*/doc/*</exclude-pattern>
<exclude-pattern >*/drush/*</exclude-pattern>
<exclude-pattern>*/reports/*</exclude-pattern>
<exclude-pattern>*/spec/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/CHANGELOG.md</exclude-pattern>
<exclude-pattern>*/README.md</exclude-pattern>
<exclude-pattern>./drupal/*</exclude-pattern>
</ruleset>