-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpcs.xml
More file actions
43 lines (37 loc) · 1.51 KB
/
phpcs.xml
File metadata and controls
43 lines (37 loc) · 1.51 KB
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"?>
<ruleset name="Speed Puzzling Coding Standard">
<description>Coding standard for Speed Puzzling project</description>
<!-- Files to check -->
<file>src/</file>
<file>tests/</file>
<file>migrations/</file>
<!-- Exclude vendor and other directories -->
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>var/</exclude-pattern>
<exclude-pattern>public/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>config/reference.php</exclude-pattern>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength"/>
</rule>
<!-- Auto-fixable Slevomat rules only -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
<properties>
<property name="shortNullable" value="no" />
<property name="nullPosition" value="first" />
</properties>
</rule>
<!-- Show progress -->
<arg name="colors"/>
<arg value="sp"/>
</ruleset>