-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpcs.xml
30 lines (30 loc) · 1.17 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="tl">
<description>Default PHP CodeSniffer configuration for tl.</description>
<file>./src</file>
<file>./tests</file>
<arg name="extensions" value="php"/>
<arg name="report" value="full"/>
<exclude-pattern>Commands</exclude-pattern>
<exclude-pattern>tests</exclude-pattern>
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"/>
<rule ref="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps">
<severity>0</severity>
</rule>
<rule ref="Drupal.Classes.InterfaceName.InterfaceSuffix">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.Missing">
<exclude-pattern>Repository.php</exclude-pattern>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.IncorrectTypeHint">
<exclude-pattern>Chunk.php</exclude-pattern>
<exclude-pattern>DbRepository.php</exclude-pattern>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase">
<exclude-pattern>Schema.php</exclude-pattern>
</rule>
<rule ref="PEAR.Functions.ValidDefaultValue.NotAtEnd">
<exclude-pattern>Application.php</exclude-pattern>
</rule>
</ruleset>