-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml.dist
31 lines (25 loc) · 1.22 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="ElasticApm">
<!-- see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<rule ref="PSR12" />
<rule ref="Generic.PHP.RequireStrictTypes" />
<rule ref="Generic.Files.LineLength">
<properties>
<!-- warning for line length above lineLimit -->
<property name="lineLimit" value="200"/>
<!-- error for line length above absoluteLineLimit -->
<property name="absoluteLineLimit" value="200"/>
</properties>
</rule>
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<!-- https://github.com/slevomat/coding-standard/blob/master/doc/namespaces.md#slevomatcodingstandardnamespacesunuseduses- -->
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<!-- searchAnnotations (defaults to false): enables searching for class names in annotations. -->
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<!-- other sniffs to include -->
<exclude-pattern>*/prod/php/ElasticOTel/Log/LogFeature.php</exclude-pattern>
<exclude-pattern>*/prod/php/ElasticOTel/PhpPartVersion.php</exclude-pattern>
</ruleset>