-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
29 lines (29 loc) · 1.26 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="uoa">
<description>Default PHP CodeSniffer configuration for Shepherd projects.</description>
<!-- folders to scan -->
<file>./assets</file>
<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>
<!-- additional arguments -->
<arg name="report" value="full"/>
<!-- inherit from coder -->
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"/>
<!-- Additional detailed sniff configuration -->
<!-- You can determine sniff names by running with -s flag -->
<!-- Example 1 - ignore Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
<rule ref="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps">
<severity>0</severity>
</rule>
// End example 1 -->
<!-- Example 2 - ignore rule for specific files
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName">
<exclude-pattern>OfferNormalizerTrait.php</exclude-pattern>
<exclude-pattern>TimeOfUseValidationTrait.php</exclude-pattern>
</rule>
// End example 2 -->
</ruleset>