-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
phpcs.xml
28 lines (25 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<rule ref="LaminasCodingStandard">
<!-- do not apply strict types: too risky on an old component - to be re-evaluated in future -->
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing"/>
</rule>
<!-- Paths to check -->
<file>src</file>
<file>test</file>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>/test/TestAsset/ReflectionTestClass.php</exclude-pattern>
</rule>
<rule ref="WebimpressCodingStandard.Formatting.StringClassReference">
<exclude-pattern>test/ReflectionTest.php</exclude-pattern>
</rule>
<!-- some interfaces have already been coded outside `laminas/laminas-coding-standard:^2` rules,
and cannot be changed just for CS reasons -->
<rule ref="WebimpressCodingStandard.NamingConventions.Interface.Suffix">
<exclude-pattern>src/Client.php</exclude-pattern>
<exclude-pattern>src/Server.php</exclude-pattern>
</rule>
</ruleset>