-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
85 lines (79 loc) · 3.17 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
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
<?xml version="1.0"?>
<ruleset name="Talis">
<file>./src</file>
<file>./test</file>
<arg name="extensions" value="php"/>
<arg value="sp"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- PSR12 -->
<rule ref="PSR12">
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<severity>3</severity>
</rule>
<!-- Generic -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/test/*</exclude-pattern>
<severity>3</severity>
</rule>
<rule ref="Generic.Commenting.Todo.CommentFound">
<severity>3</severity>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors">
<severity>3</severity>
</rule>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<!-- PSR1 -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/test/*</exclude-pattern>
<severity>3</severity>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/test/*</exclude-pattern>
<severity>3</severity>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>*/test/*</exclude-pattern>
<severity>3</severity>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<severity>3</severity>
</rule>
<!-- Squiz -->
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<rule ref="Squiz.Commenting.EmptyCatchComment"/>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude-pattern>*/test/*</exclude-pattern>
<exclude name="Squiz.Commenting.FunctionComment.MissingReturn"/>
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/>
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
<exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
<severity>3</severity>
</rule>
<rule ref="Squiz.NamingConventions.ValidFunctionName">
<exclude name="Squiz.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
<severity>3</severity>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName">
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
<severity>3</severity>
</rule>
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
<rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
<rule ref="Squiz.PHP.DiscouragedFunctions">
<severity>3</severity>
</rule>
<rule ref="Squiz.Scope.MemberVarScope"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Squiz.Scope.StaticThisUsage"/>
<rule ref="Squiz.Strings.DoubleQuoteUsage">
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
</rule>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
</ruleset>