-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.ruleset.xml
106 lines (94 loc) · 4.78 KB
/
phpcs.ruleset.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0"?>
<ruleset name="RD-Crypto Code Standard">
<description>RD-Crypto Code Standard</description>
<config name="testVersion" value="8.0-"/>
<arg name="extensions" value="php" />
<arg name="encoding" value="utf-8"/>
<arg value="s"/>
<arg value="n"/>
<exclude-pattern type="relative">^src/App/Views/*</exclude-pattern>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.EndFileNewline"/>
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
<rule ref="Generic.Metrics.NestingLevel"/>
<rule ref="Generic.Files.LineLength.TooLong"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Generic.Formatting.NoSpaceAfterCast"/>
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="50" />
<property name="error" value="true" />
</properties>
</rule>
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.PHP.LowerCaseType"/>
<rule ref="Generic.PHP.DiscourageGoto"/>
<rule ref="Generic.PHP.BacktickOperator"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.VersionControl.GitMergeConflict"/>
<rule ref="PSR2" />
<rule ref="PSR12.Functions.NullableTypeDeclaration"/>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols"><exclude-pattern>*Test\.php</exclude-pattern></rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore"><exclude-pattern>*Test\.php</exclude-pattern></rule>
<rule ref="PHPCompatibility"/>
<rule ref="PHPCompatibility.Extensions.RemovedExtensions.fdfRemoved"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Squiz.Classes.ClassFileName" />
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Squiz.PHP.NonExecutableCode"/>
<rule ref="Squiz.PHP.GlobalKeyword"/>
<rule ref="Squiz.PHP.Eval"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
</properties>
</rule>
<rule ref="Symfony.NamingConventions.ValidClassName"/>
<rule ref="Symfony.Functions.ScopeOrder"/>
<rule ref="Symfony.Functions.ReturnType"/>
<rule ref="Security.CVE"/>
<rule ref="Security.Symfony2"/>
<rule ref="Security.Misc"/>
<rule ref="Security.Misc.IncludeMismatch.ErrMiscIncludeMismatchNoExt"><exclude-pattern>*</exclude-pattern></rule>
<rule ref="Security.BadFunctions.Backticks"/>
<rule ref="Security.BadFunctions.NoEvals"/>
<rule ref="Security.BadFunctions.CryptoFunctions"/>
<rule ref="Security.BadFunctions.Mysqli"/>
<rule ref="SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"/>
<rule ref="SlevomatCodingStandard.PHP.TypeCast"/>
<rule ref="SlevomatCodingStandard.PHP.ShortList"/>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing"/>
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="Squiz.Arrays.ArrayDeclaration">
<exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned" />
<exclude name="Squiz.Arrays.ArrayDeclaration.KeyNotAligned" />
<exclude name="Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned" />
<exclude name="Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed" />
<exclude name="Squiz.Arrays.ArrayDeclaration.CommaAfterLast" />
</rule>
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator">
<properties>
<property name="lineLengthLimit" value="130"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="dump=>null" />
</properties>
</rule>
</ruleset>