-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathphpcs.xml
32 lines (24 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Buckaroo Wordpress WooCommerce"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Rules for Buckaroo Payments Shopware 6.</description>
<arg name="colors"/>
<arg name="report" value="code"/>
<rule ref="PSR2">
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
</rule>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>./vendor/*</exclude-pattern>
<!-- Exclude Javascript files. -->
<exclude-pattern>*.js</exclude-pattern>
<!-- Exclude Css files. -->
<exclude-pattern>*.css</exclude-pattern>
<!-- Only 3 indentation level per function/method -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>*/src/BuckarooPayments.php</exclude-pattern>
</rule>
<!-- Ignore long lines in controller because of route anotations -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*/src/Storefront/Controller</exclude-pattern>
</rule>
</ruleset>