-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
phpcs.xml
32 lines (26 loc) · 1.4 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 name="Laminas coding standard">
<rule ref="LaminasCodingStandard"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing">
<!-- strict types are too risky to introduce in existing sources here, and have been disabled, for now -->
<exclude-pattern>src/</exclude-pattern>
</rule>
<rule ref="WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps">
<!-- renaming all non-camel-case variables now is of very little value, and lots of review overhead -->
<exclude-pattern>src/</exclude-pattern>
<exclude-pattern>test/</exclude-pattern>
</rule>
<rule ref="WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCapsProperty">
<!-- renaming all non-camel-case variables now is of very little value, and lots of review overhead -->
<exclude-pattern>src/</exclude-pattern>
<exclude-pattern>test/</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName">
<!-- our test suite relies on `ldap_*` functions being mocked out, therefore we can't really import them -->
<exclude-pattern>src</exclude-pattern>
<exclude-pattern>test</exclude-pattern>
</rule>
<!-- Paths to check -->
<file>src</file>
<file>test</file>
</ruleset>