-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
43 lines (37 loc) · 1.38 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
<?xml version="1.0"?>
<ruleset name="phpcs rules">
<description>Tweaked PSR1/PSR2 lint rules</description>
<!-- Directories to lint -->
<file>src</file>
<file>tests</file>
<exclude-pattern>tests/database/0000_00_00_000000_makeTestTables.php</exclude-pattern>
<!-- Setup -->
<arg name="basepath" value="."/>
<arg name="parallel" value="75" />
<!-- Include the PSR-1 & PSR-2 rule sets -->
<rule ref="PSR1"/>
<rule ref="PSR2"/>
<!-- Bonus comment & formatting rules -->
<rule ref="Squiz.Commenting.BlockComment" />
<rule ref="Squiz.Commenting.DocCommentAlignment" />
<rule ref="Squiz.Commenting.EmptyCatchComment" />
<rule ref="Generic.PHP.DeprecatedFunctions" />
<rule ref="Generic.Formatting.SpaceAfterCast" />
<rule ref="Squiz.Commenting.InlineComment">
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
</rule>
<!-- Space rules -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
<!-- Tweak slightly -->
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
</properties>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="150" />
</properties>
</rule>
</ruleset>