-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
111 lines (104 loc) · 4.68 KB
/
phpcs.xml
File metadata and controls
111 lines (104 loc) · 4.68 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="10"/>
<arg name="encoding" value="utf-8"/>
<arg name="tab-width" value="4"/>
<!-- Show progress -->
<arg value="sp"/>
<file>src</file>
<file>test</file>
<rule ref="Generic">
<exclude name="Generic.Arrays.ArrayIndent"/> <!-- see below -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/>
<exclude name="Generic.CodeAnalysis.EmptyStatement"/> <!-- see below -->
<exclude name="Generic.CodeAnalysis.JumbledIncrementer"/>
<exclude name="Generic.Commenting"/> <!-- see below -->
<exclude name="Generic.Files.EndFileNoNewline"/>
<exclude name="Generic.Files.LineLength"/>
<exclude name="Generic.Files.LowercasedFilename"/>
<exclude name="Generic.Formatting.DisallowMultipleStatements"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
<exclude name="Generic.Formatting.SpaceBeforeCast"/>
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<exclude name="Generic.Metrics.CyclomaticComplexity"/> <!-- see below -->
<exclude name="Generic.NamingConventions.AbstractClassNamePrefix"/>
<exclude name="Generic.NamingConventions.CamelCapsFunctionName"/>
<exclude name="Generic.NamingConventions.InterfaceNameSuffix"/>
<exclude name="Generic.NamingConventions.TraitNameSuffix"/>
<exclude name="Generic.PHP.ClosingPHPTag"/>
<exclude name="Generic.PHP.UpperCaseConstant"/>
<exclude name="Generic.Strings.UnnecessaryStringConcat"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/> <!-- see below -->
</rule>
<rule ref="Generic.Arrays.ArrayIndent">
<properties>
<property name="indent" value="4"/>
</properties>
<type>warning</type>
</rule>
<rule ref="Generic.CodeAnalysis.EmptyStatement">
<type>warning</type>
</rule>
<rule ref="Generic.Commenting">
<type>warning</type>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast">
<properties>
<property name="spacing" value="0"/>
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterNot">
<properties>
<property name="spacing" value="0"/>
</properties>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<type>warning</type>
<severity>2</severity>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<rule ref="PSR1"/>
<rule ref="PSR12.Classes">
<exclude name="PSR12.Classes.OpeningBraceSpace"/>
<exclude name="PSR12.Classes.AnonClassDeclaration"/>
</rule>
<rule ref="PSR12.Functions"/>
<rule ref="PSR12.Keywords"/>
<rule ref="PSR12.Namespaces"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<rule ref="PEAR.Functions.ValidDefaultValue"/>
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent">
<properties>
<property name="indent" value="4"/>
</properties>
</rule>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
<rule ref="Squiz.Classes.SelfMemberReference"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag"/>
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
<rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>
<rule ref="Squiz.Functions.FunctionDuplicateArgument"/>
<rule ref="Squiz.Functions.FunctionDuplicateArgument"/>
<rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
<rule ref="Squiz.Scope.StaticThisUsage"/>
<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
<rule ref="Squiz.Strings.EchoedStrings"/>
<rule ref="Squiz.WhiteSpace.CastSpacing"/>
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
</ruleset>