-
Notifications
You must be signed in to change notification settings - Fork 69
/
phpcs.xml.dist
34 lines (27 loc) · 1.41 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
32
33
34
<?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>*/polyfills/Stringable.php</exclude-pattern>
<exclude-pattern>*/polyfills/WeakMap.php</exclude-pattern>
<exclude-pattern>*/tests/ElasticApmTests/ComponentTests/WordPress/mock_src/*.php</exclude-pattern>
<exclude-pattern>*/tests/ElasticApmTests/ComponentTests/WordPress/expected_process_AST_output/*.php</exclude-pattern>
</ruleset>