forked from thybag/PseudoModel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
36 lines (31 loc) · 1.15 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
<?xml version="1.0"?>
<ruleset name="phpcs rules">
<description>Tweaked PSR1/PSR2 lint rules</description>
<!-- Directories to lint -->
<file>src</file>
<file>tests</file>
<!-- 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>
</ruleset>