-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
28 lines (25 loc) · 1.05 KB
/
phpcs.xml.dist
File metadata and controls
28 lines (25 loc) · 1.05 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="PHPCS Coding Standards for Respect/Data"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<arg name="basepath" value="." />
<arg name="cache" value=".phpcs.cache" />
<arg name="colors" />
<arg name="extensions" value="php" />
<arg value="p" />
<arg value="s" />
<file>src/</file>
<file>tests/</file>
<rule ref="Respect">
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix" />
<!-- PHPCS 4.0.x cannot parse property hooks (PHP 8.4+), remove when fixed -->
<exclude name="PSR2.Classes.PropertyDeclaration.Multiple" />
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing" />
</rule>
<!-- Test code and stub entities use snake_case properties matching DB columns -->
<rule ref="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps">
<exclude-pattern>tests/</exclude-pattern>
</rule>
</ruleset>