-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
54 lines (54 loc) · 2.91 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
<?xml version="1.0" ?>
<ruleset name="PCCD" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>PSR12 with some rules disabled, and with a few enabled rules from SlevomatCodingStandard.</description>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength" />
<exclude name="PSR12.Files.FileHeader" />
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="boolval" value="null" />
<element key="create_function" value="null" />
<element key="delete" value="unset" />
<element key="die" value="exit" />
<element key="eval" value="null" />
<element key="extract" value="null" />
<element key="floatval" value="null" />
<element key="intval" value="null" />
<element key="is_null" value="null" />
<element key="sizeof" value="count" />
<element key="sprintf" value="null" />
<element key="strval" value="null" />
<element key="utf8_decode" value="null" />
<element key="utf8_encode" value="null" />
</property>
</properties>
</rule>
<config name="installed_paths" value="vendor/slevomat/coding-standard" />
<rule ref="SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys" />
<rule ref="SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed" />
<rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement" />
<rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace" />
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma" />
<rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing" />
<rule ref="SlevomatCodingStandard.Attributes.AttributesOrder" />
<rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining" />
<rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine" />
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator" />
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses" />
<rule ref="SlevomatCodingStandard.PHP.ShortList" />
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses" />
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon" />
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable" />
<rule ref="SlevomatCodingStandard.Variables.UselessVariable" />
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces" />
<arg name="extensions" value="php" />
<exclude-pattern>*.generated.php</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/third_party/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>