-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ruleset.xml
35 lines (30 loc) · 1.14 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
<?xml version="1.0"?>
<ruleset>
<!-- Contributte Coding Standard -->
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>
<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Tp"/>
<element key="tests/cases" value="Tests\Tp"/>
</property>
<property name="extensions" type="array" value="php,phpt"/>
</properties>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>tests/cases/**/*</exclude-pattern>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
<exclude-pattern>src/Helper/DivMerchant\.php</exclude-pattern>
<exclude-pattern>src/Helper/RadioMerchant\.php</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern>src/DataApi/Requests/Request\.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse">
<exclude-pattern>src/DataApi/DataApiObject\.php</exclude-pattern>
</rule>
<!--Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>