-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpcs.xml.dist
75 lines (65 loc) · 2.77 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="wdvCompass">
<description>The coding standard for the callingallpapers-API.</description>
<file>src</file>
<file>tests</file>
<arg name="basepath" value="."/>
<arg name="colors" />
<arg name="parallel" value="75" />
<arg value="np"/>
<rule ref="PSR2" />
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- Include some sniffs from other standards that don't conflict with PEAR -->
<!--rule ref="Squiz.Arrays.ArrayBracketSpacing" /-->
<!--rule ref="Squiz.Arrays.ArrayDeclaration" /-->
<!--rule ref="Squiz.ControlStructures.ControlSignature" /-->
<!--rule ref="Squiz.ControlStructures.ElseIfDeclaration" /-->
<!--rule ref="Squiz.Commenting.BlockComment" /-->
<!--rule ref="Squiz.Commenting.DocCommentAlignment" /-->
<!--rule ref="Squiz.Commenting.EmptyCatchComment" /-->
<!--rule ref="Squiz.Commenting.InlineComment" /-->
<!--rule ref="Squiz.Commenting.LongConditionClosingComment" /-->
<!--rule ref="Squiz.Commenting.PostStatementComment" /-->
<!--rule ref="Squiz.Commenting.VariableComment" /-->
<!--rule ref="Squiz.Formatting.OperatorBracket" /-->
<!--rule ref="Squiz.Operators.ComparisonOperatorUsage" /-->
<!--rule ref="Squiz.PHP.DisallowInlineIf" /-->
<!--rule ref="Generic.Commenting.Todo"/-->
<!--rule ref="Generic.ControlStructures.InlineControlStructure"/-->
<!--rule ref="Generic.Formatting.DisallowMultipleStatements"/-->
<!--rule ref="Generic.Formatting.SpaceAfterCast"/-->
<!--rule ref="Generic.NamingConventions.ConstructorName"/-->
<!--rule ref="Generic.PHP.DeprecatedFunctions"/-->
<!--rule ref="Generic.PHP.LowerCaseKeyword"/-->
<!--rule ref="Generic.Strings.UnnecessaryStringConcat"/-->
<rule ref="Zend.Files.ClosingTag"/>
<!-- Check var names, but we don't want leading underscores for private vars -->
<rule ref="Squiz.NamingConventions.ValidVariableName" />
<rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<severity>0</severity>
</rule>
<!-- Only one argument per line in multi-line function calls -->
<!--rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule-->
<!-- Have 12 chars padding maximum and always show as errors -->
<!--rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="12"/>
<property name="error" value="true"/>
</properties>
</rule-->
<!-- Private methods MUST not be prefixed with an underscore -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<type>error</type>
</rule>
<!-- Private properties MUST not be prefixed with an underscore -->
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<type>error</type>
</rule>
</ruleset>