This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathruleset.xml
49 lines (48 loc) · 1.98 KB
/
ruleset.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
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<ruleset name="Talent Cloud">
<description>An extended PSR2 standard for the Talent Cloud codebase</description>
<!-- Paths to sniff -->
<file>./app</file>
<file>./database/factories</file>
<!-- Directories/Files to ignore -->
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/database/migrations/*</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>
<exclude-pattern>*/storage/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<ini name="memory_limit" value="512M"/>
<!-- Include the PSR2 standard -->
<rule ref="PSR2"/>
<!-- Use Slevomat's coding standards to sniff docblocks -->
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint" phpcs-only="true">
<exclude-pattern>*/app/Http/*</exclude-pattern>
<exclude-pattern>*/app/Policies/*</exclude-pattern>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint" phpcs-only="true">
<exclude-pattern>*/app/Http/*</exclude-pattern>
<exclude-pattern>*/app/Policies/*</exclude-pattern>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint" phpcs-only="true">
<exclude-pattern>*/app/Http/*</exclude-pattern>
<exclude-pattern>*/app/Policies/*</exclude-pattern>
<type>warning</type>
</rule>
<!-- More docblock sniffs -->
<rule ref="Squiz.Commenting.FunctionComment" phpcs-only="true">
<type>warning</type>
</rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag">
<type>warning</type>
</rule>
<rule ref="Squiz.Commenting.InlineComment">
<type>warning</type>
</rule>
<rule ref="Squiz.Commenting.VariableComment">
<type>warning</type>
</rule>
<!-- Quote style -->
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
</ruleset>