-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
26 lines (26 loc) · 1.32 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
<?xml version="1.0"?>
<ruleset name="MultiSafepay">
<description>A custom coding standard for MultiSafepay`s PrestaShop plugin.</description>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/translations/*</exclude-pattern>
<exclude-pattern>*/sql/*</exclude-pattern>
<exclude-pattern>*/views/js/dragula.js</exclude-pattern>
<exclude-pattern>*/views/js/*.min.js</exclude-pattern>
<exclude-pattern>*/views/css/*.min.css</exclude-pattern>
<exclude-pattern>*/src/PaymentOptions/PaymentMethods/AfterPay.php</exclude-pattern>
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PEAR.Functions.ValidDefaultValue"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>*/tests</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/phpstan/class_stub.php</exclude-pattern>
</rule>
</ruleset>