-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
60 lines (54 loc) · 2.11 KB
/
phpcs.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
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<ruleset name="Coding Standards for SDK">
<description>PSR-2 + docs</description>
<file>./source</file>
<file>./tests</file>
<arg name="colors"/>
<rule ref="PSR2"/>
<rule ref="Generic.Arrays.DisallowShortArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.Commenting">
<exclude name="Generic.Commenting.DocComment"/>
</rule>
<rule ref="Generic.ControlStructures">
<exclude name="Generic.ControlStructures.DisallowYodaConditions.Found"/>
</rule>
<rule ref="Generic.Debug"/>
<rule ref="Generic.Files">
<exclude name="Generic.Files.EndFileNoNewline"/>
<exclude name="Generic.Files.LowercasedFilename"/>
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="Generic.Formatting">
<exclude name="Generic.Formatting.NoSpaceAfterCast"/>
<exclude name="Generic.Formatting.SpaceAfterNot"/>
</rule>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.Metrics"/>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="12"/>
</properties>
</rule>
<rule ref="Generic.NamingConventions"/>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<properties>
<property name="strict" value="false"/>
</properties>
</rule>
<rule ref="Generic.PHP">
<exclude name="Generic.PHP.ClosingPHPTag"/>
<exclude name="Generic.PHP.UpperCaseConstant"/>
<exclude name="Generic.PHP.RequireStrictTypes.MissingDeclaration"/>
</rule>
<rule ref="Generic.Strings"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Squiz.Classes"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Squiz.Commenting.VariableComment"/>
<rule ref="Squiz.ControlStructures">
<exclude name="Squiz.ControlStructures.ElseIfDeclaration"/>
<exclude name="Squiz.ControlStructures.ControlSignature"/>
<exclude name="Squiz.ControlStructures.SwitchDeclaration"/>
</rule>
</ruleset>