-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathphpcs.xml
40 lines (40 loc) · 1.48 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
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset name="SwiftOtter.Driver">
<file>src</file>
<rule ref="PSR12"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<severity>7</severity>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<severity>7</severity>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<severity>7</severity>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint">
<severity>7</severity>
<type>warning</type>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<severity>7</severity>
<type>warning</type>
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
<property name="newlinesCountAfterDeclare" value="2"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName">
<severity>7</severity>
<type>warning</type>
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
</rule>
<rule ref="Squiz.NamingConventions.ValidFunctionName">
<severity>7</severity>
<type>warning</type>
<exclude name="Squiz.NamingConventions.ValidFunctionName.PrivateNoUnderscore" />
</rule>
</ruleset>