-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
34 lines (28 loc) · 1.16 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
<?xml version="1.0"?>
<ruleset name="Lamb standard">
<description>PHP Coding Standards for Lamb</description>
<!-- Set the PHP version to use for PHP_CodeSniffer (and thus HM Linter) to PHP 8.0. -->
<config name="php_version" value="80200"/>
<!-- Set a minimum PHP version for PHPCompatibility. -->
<config name="testVersion" value="8.2-"/>
<!-- Show sniff codes in all reports. -->
<arg value="s"/>
<!-- Check PHP files only. -->
<arg name="extensions" value="php"/>
<!-- leave only src -->
<exclude-pattern>\.*/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<!-- Check for PHP cross-version compatibility. -->
<rule ref="PHPCompatibility"/>
<rule ref="PSR2">
<!-- tests/-->
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="PSR2.Namespaces.UseDeclaration.SpaceAfterUse"/>
</rule>
<rule ref="PSR12">
<!-- Disable specific rules I don't like -->
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
</rule>
</ruleset>