-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
25 lines (25 loc) · 1014 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="uoa">
<description>Default PHP CodeSniffer configuration for UoA projects.</description>
<!-- folders to scan -->
<file>./web/modules/custom</file>
<file>./web/modules/contrib</file>
<file>./web/profiles</file>
<file>./web/themes</file>
<exclude-pattern>./web/modules/contrib/(?!ua_)*</exclude-pattern>
<exclude-pattern>*md</exclude-pattern>
<exclude-pattern>*css</exclude-pattern>
<exclude-pattern>*min.js</exclude-pattern>
<exclude-pattern>*vendor/*.js</exclude-pattern>
<exclude-pattern>*plugins/*.js</exclude-pattern>
<exclude-pattern>*dist/*.js</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- additional arguments -->
<arg name="report" value="full"/>
<!-- inherit from coder -->
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"/>
<!-- Additional detailed sniff configuration -->
<rule ref="Drupal.Commenting.TodoComment.TodoFormat">
<severity>0</severity>
</rule>
</ruleset>