-
Notifications
You must be signed in to change notification settings - Fork 8
/
phpcs.xml.dist
33 lines (23 loc) · 1.15 KB
/
phpcs.xml.dist
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Adapted from Acquia Coding Standards default ruleset. -->
<!-- @see https://github.com/acquia/coding-standards-php/blob/develop/example/phpcs.xml.dist -->
<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<ruleset name="Example">
<description>An example PHP CodeSniffer configuration.</description>
<!-- Set extensions to scan (taken from Coder 8.3.6). -->
<!-- @see https://git.drupalcode.org/project/coder/blob/8.3.6/coder_sniffer/Drupal/ruleset.xml#L8 -->
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<arg name="colors"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="parallel" value="10"/>
<file>docroot/modules/custom</file>
<file>docroot/themes/custom</file>
<file>tests</file>
<exclude-pattern>*/source/default</exclude-pattern>
<exclude-pattern>*/dist</exclude-pattern>
<exclude-pattern>*/behat</exclude-pattern>
<exclude-pattern>*/node_modules</exclude-pattern>
<exclude-pattern>*/vendor</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<rule ref="AcquiaDrupalStrict"/>
</ruleset>