-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
28 lines (21 loc) · 1.07 KB
/
phpcs.xml.dist
File metadata and controls
28 lines (21 loc) · 1.07 KB
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
<?xml version="1.0"?>
<ruleset name="Inpsyde Coding Standard">
<file>./src</file>
<file>./modules</file>
<file>./paypal-point-of-sale.php</file>
<config name="zettle-woocommerce" value="zettle-woocommerce"/>
<config name="ignore_warnings_on_exit" value="1"/>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/(modules.local|modules)/*/assets/*</exclude-pattern>
<exclude-pattern>*/(modules.local|modules)/*/node_modules/*</exclude-pattern>
<exclude-pattern>*/(modules.local|modules)/*/resources/*</exclude-pattern>
<!-- TODO: phpcs crashes, need update? -->
<!-- https://github.com/inpsyde/php-coding-standards/issues/21#issuecomment-604323233 -->
<exclude-pattern>*/repositories-*.php</exclude-pattern>
<rule ref="Inpsyde">
<exclude name="Inpsyde.CodeQuality.PropertyPerClassLimit.TooMuchProperties" />
<exclude name="Inpsyde.CodeQuality.FunctionBodyStart.WrongForMultiLineDeclaration" />
<exclude name="Inpsyde.CodeQuality.NoAccessors.NoSetter" />
</rule>
</ruleset>