Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathphpcs.xml
More file actions
Latest commit
119 lines (98 loc) · 4.08 KB
/
Copy pathphpcs.xml
File metadata and controls
119 lines (98 loc) · 4.08 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
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>
<rulesetname="pcsg-generated-ruleset">
<description>PHP Code Sniffer for Package</description>
<argname="colors"/>
<ruleref="PSR2">
<excludename="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
</rule>
<ruleref="Generic.CodeAnalysis.EmptyStatement"/>
<ruleref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<ruleref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<ruleref="Generic.CodeAnalysis.JumbledIncrementer"/>
<ruleref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
<ruleref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
<ruleref="Generic.ControlStructures.InlineControlStructure"/>
<ruleref="Generic.Files.ByteOrderMark"/>
<ruleref="Generic.Files.LineEndings"/>
<ruleref="Generic.Formatting.DisallowMultipleStatements"/>
<ruleref="Generic.Formatting.SpaceAfterCast.NoSpace">
<type>warning</type>
</rule>
<ruleref="Generic.Functions.CallTimePassByReference"/>
<ruleref="Generic.Functions.FunctionCallArgumentSpacing"/>
<ruleref="Generic.Metrics.NestingLevel">
<properties>
<propertyname="nestingLevel"value="7"/>
</properties>
</rule>
<ruleref="Generic.Metrics.CyclomaticComplexity">
<properties>
<propertyname="complexity"value="20"/>
<propertyname="absoluteComplexity"value="40"/>
</properties>
</rule>
<ruleref="Generic.Metrics.CyclomaticComplexity.TooHigh">
<type>warning</type>
</rule>
<ruleref="Generic.Metrics.CyclomaticComplexity.MaxExceeded">
<type>warning</type>
</rule>
<ruleref="Generic.NamingConventions.ConstructorName"/>
<ruleref="Generic.NamingConventions.UpperCaseConstantName"/>
<ruleref="Generic.PHP.DeprecatedFunctions"/>
<ruleref="Generic.PHP.DisallowShortOpenTag"/>
<ruleref="Generic.PHP.ForbiddenFunctions"/>
<ruleref="Generic.PHP.LowerCaseConstant"/>
<ruleref="Generic.PHP.NoSilencedErrors"/>
<ruleref="Generic.Strings.UnnecessaryStringConcat"/>
<ruleref="Generic.WhiteSpace.DisallowTabIndent"/>
<ruleref="Generic.WhiteSpace.ScopeIndent"/>
<ruleref="Generic.Commenting.Todo.CommentFound">
<message>Please review this TODO comment: %s</message>
<type>warning</type>
</rule>
<ruleref="Generic.Commenting.Fixme.TaskFound">
<message>Please review this FIXME comment: %s</message>
<type>warning</type>
</rule>
<ruleref="Generic.Files.LineLength">
<properties>
<propertyname="lineLimit"value="120"/>
<propertyname="absoluteLineLimit"value="200"/>
</properties>
</rule>
<ruleref="Generic.Files.LineLength">
<excludename="Generic.Files.LineLength.MaxExceeded"/>
<excludename="Generic.Files.LineLength.TooLong"/>
</rule>
<!--
<rule ref="Generic.Files.LineLength.MaxExceeded">
<message>Line contains %s chars, which is longer than the max limit of %s</message>
<type>warning</type>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<message>Line longer than %s characters; contains %s characters</message>
<type>warning</type>
</rule> -->
<ruleref="Generic.Classes.DuplicateClassName"/>
<ruleref="PEAR.Commenting.InlineComment"/>
<ruleref="PEAR.ControlStructures.MultiLineCondition"/>
<ruleref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
<ruleref="MySource.PHP.EvalObjectFactory"/>
<ruleref="MySource.PHP.GetRequestData"/>
<!--
<rule ref="MySource.PHP.ReturnFunctionValue"/>
-->
<ruleref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
<ruleref="Squiz.WhiteSpace.SemicolonSpacing"/>
<ruleref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
<type>warning</type>
</rule>
<ruleref="Squiz.WhiteSpace.CastSpacing"/>
<ruleref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
<!--
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
-->
<ruleref="Squiz.WhiteSpace.OperatorSpacing"/>
<ruleref="Squiz.Scope.StaticThisUsage"/>
</ruleset>