-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
61 lines (59 loc) · 2.75 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
<?xml version="1.0" encoding="UTF-8" ?>
<ruleset name="Default">
<description>The coding standard configuration for «PHP Code Sniffer Helpers» package.</description>
<!-- Rules -->
<rule ref="PSR12" />
<rule ref="PEAR.Functions.ValidDefaultValue" />
<rule ref="PEAR.Commenting.InlineComment" />
<rule ref="Squiz.Operators.ValidLogicalOperators" />
<rule ref="Squiz.PHP.CommentedOutCode">
<properties>
<property name="maxPercentage" value="50" />
</properties>
</rule>
<rule ref="Squiz.PHP.LowercasePHPFunctions" />
<rule ref="Squiz.PHP.NonExecutableCode" />
<rule ref="Squiz.Strings.DoubleQuoteUsage" />
<rule ref="Squiz.WhiteSpace.SemicolonSpacing" />
<rule ref="Squiz.Arrays.ArrayDeclaration">
<exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned" />
<exclude name="Squiz.Arrays.ArrayDeclaration.KeyNotAligned" />
<!-- <exclude name="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned" /> -->
<!-- <exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned" /> -->
<exclude name="Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned" />
<exclude name="Squiz.Arrays.ArrayDeclaration.ValueNoNewline" />
<exclude name="Squiz.Arrays.ArrayDeclaration.MultiLineNotAllowed" />
<exclude name="Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed" />
</rule>
<rule ref="Generic.Arrays.ArrayIndent" />
<rule ref="Generic.CodeAnalysis.AssignmentInCondition" />
<rule ref="Generic.CodeAnalysis.EmptyPHPStatement" />
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
<rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<rule ref="Generic.Formatting.MultipleStatementAlignment" />
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Generic.NamingConventions.ConstructorName" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4" />
<property name="exact" value="true" />
</properties>
</rule>
<!-- Config -->
<!-- <config name="show_progress" value="1"/>
<config name="encoding" value="utf-8"/> -->
<exclude-pattern type="relative">^.git/*</exclude-pattern>
<exclude-pattern type="relative">^output/*</exclude-pattern>
<exclude-pattern type="relative">^vendor/*</exclude-pattern>
<arg name="colors" />
<arg name="extensions" value="php" />
<arg name="encoding" value="utf-8" />
</ruleset>