forked from matomo-org/matomo-php-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
38 lines (32 loc) · 1.41 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
38 lines (32 loc) · 1.41 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
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0"?>
<ruleset name="matomo-php-tracker">
<description>Matomo PHP Tracker Coding Standard</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<file>MatomoTracker.php</file>
<file>PiwikTracker.php</file>
<file>tests</file>
<rule ref="Matomo"/>
<!--
400-char limit to match Matomo core's own coding standard (tests/PHPUnit/phpcs.xml):
the tracker ships long single-line query-string concatenations and the tests use long
user-agent / expected-URL literals. Kept in sync with core rather than set arbitrarily.
-->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="400"/>
<property name="absoluteLineLimit" value="400"/>
</properties>
</rule>
<!-- The tracker files define a class together with global helper functions and an include. -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>MatomoTracker.php</exclude-pattern>
<exclude-pattern>PiwikTracker.php</exclude-pattern>
</rule>
<!-- The public classes are intentionally global (no namespace) for backwards compatibility. -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>MatomoTracker.php</exclude-pattern>
<exclude-pattern>PiwikTracker.php</exclude-pattern>
</rule>
</ruleset>