forked from geerlingguy/drupalvm-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
36 lines (26 loc) · 1.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
<?xml version="1.0"?>
<ruleset name="App">
<description>project PHP_CodeSniffer standards overrides.</description>
<!-- Set installed_paths. -->
<config name="installed_paths" value="../../drupal/coder/coder_sniffer"/>
<!-- Set default extensions. -->
<arg name="extensions" value="module,install,profile,php,theme,inc,test"/>
<!-- Use colors in output -->
<arg name="colors"/>
<!-- Include existing standards. -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<file>./web</file>
<!-- Exclude core. -->
<exclude-pattern>*/web/core/*</exclude-pattern>
<!-- Exclude autoloader. -->
<exclude-pattern>*/web/autoload.php</exclude-pattern>
<!-- Exclude sites directory. -->
<exclude-pattern>*/web/sites/*</exclude-pattern>
<!-- Exclude contrib modules. -->
<exclude-pattern>*/modules/contrib/*</exclude-pattern>
<!--Force short array syntax.-->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
<type>warning</type>
</rule>
</ruleset>