-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
38 lines (31 loc) · 1.26 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
<?xml version="1.0"?>
<ruleset name="keylighter">
<description>Keylighter coding standards</description>
<file>./bin/</file>
<file>./Config/formatters.php</file>
<file>./Exceptions/</file>
<file>./Formatter/</file>
<file>./Language/</file>
<file>./Matcher/</file>
<file>./Parser/</file>
<file>./Styles/Cli/Default.php</file>
<file>./Styles/Latex/Default.php</file>
<file>./Tests/</file>
<exclude-pattern>./Tests/Samples/</exclude-pattern>
<rule ref="PSR12">
<!-- Ignore too long lines -->
<exclude name="Generic.Files.LineLength.TooLong"/>
<!-- Ignore private properties prefixed with underscore -->
<exclude name="PSR2.Classes.PropertyDeclaration" />
<!-- Ignore private methods prefixed with underscore -->
<exclude name="PSR2.Methods.MethodDeclaration" />
<!-- We have header comment which is not really a file-level docblock -->
<exclude name="PSR12.Files.FileHeader.IncorrectOrder" />
</rule>
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
</rule>
</ruleset>