forked from assoconnect/php-quality-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.ruleset.xml
43 lines (35 loc) · 1.7 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<rule ref="PSR12"/>
<!-- https://github.com/PHPCSStandards/PHPCSExtra -->
<rule ref="Modernize"/>
<rule ref="NormalizedArrays"/>
<rule ref="Universal.Arrays.DuplicateArrayKey"/>
<rule ref="Universal.Arrays.MixedArrayKeyTypes"/>
<rule ref="Universal.Arrays.MixedKeyedUnkeyedArray"/>
<rule ref="Universal.Classes.ModifierKeywordOrder"/>
<rule ref="Universal.CodeAnalysis.ConstructorDestructorReturn"/>
<rule ref="Universal.CodeAnalysis.ForeachUniqueAssignment"/>
<rule ref="Universal.Constants.LowercaseClassResolutionKeyword"/>
<rule ref="Universal.Constants.ModifierKeywordOrder"/>
<rule ref="Universal.Constants.UppercaseMagicConstants"/>
<rule ref="Universal.Operators.StrictComparisons"/>
<rule ref="Universal.Operators.TypeSeparatorSpacing"/>
<rule ref="Universal.UseStatements.LowercaseFunctionConst"/>
<rule ref="Universal.UseStatements.NoLeadingBackslash"/>
<rule ref="Universal.WhiteSpace.DisallowInlineTabs"/>
<!-- Requires single quotes for strings -->
<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
</ruleset>