forked from ifwe/SimpleStaticMock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
24 lines (23 loc) · 1.01 KB
/
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
<?xml version="1.0"?>
<!-- This is a ruleset for https://github.com/squizlabs/PHP_CodeSniffer -->
<!-- Usage: phpcs.phar \-\-standard=path/toruleset.xml path/to/file_or_folder.php (Can't have double hyphen in xml comment) -->
<!-- phpcbf.phar can be used to automatically fix many issues -->
<!-- Use this with PHP_CodeSniffer 3.3.0 or newer -->
<ruleset name="Custom Standard">
<description>Coding standard for SimpleStaticMock</description>
<rule ref="PSR1" />
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength.TooLong" />
<!-- We put class initialization in the same file as methods -->
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses" />
</rule>
<rule ref="PSR12" />
<!-- Arbitrary increase of the line length limit -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="150"/>
<property name="absoluteLineLimit" value="200"/>
</properties>
</rule>
</ruleset>