1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 14:37:49 +00:00
Files
matomo/phpcs.xml
Stefan Giehl 1e35caeb31 Use Matomo coding standard repo (#22421)
* Use new global Matomo cs

* update used branch
2024-08-01 09:36:19 +02:00

35 خطوط
1.5 KiB
XML

<?xml version="1.0"?>
<ruleset name="matomo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Matomo Core Coding Standard</description>
<arg name="extensions" value="php" />
<file>core</file>
<file>plugins</file>
<file>tests/PHPUnit</file>
<exclude-pattern>tests/PHPUnit/proxy/*</exclude-pattern>
<exclude-pattern>tests/PHPUnit/Unit/Config/test_files/*</exclude-pattern>
<exclude-pattern>tests/javascript/*</exclude-pattern>
<!-- exclude all plugins included as submodule as long as they might not fully follow this CS -->
<exclude-pattern>plugins/(AnonymousPiwikUsageMeasurement|Bandwidth|CustomAlerts|CustomVariables|DeviceDetectorCache|LogViewer|LoginLdap|MarketingCampaignsReporting|Provider|QueuedTracking|SecurityInfo|TagManager|TasksTimetable|TrackingSpamPrevention|TreemapVisualization|VisitorGenerator)/*</exclude-pattern>
<rule ref="Matomo"></rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="400"/>
</properties>
<exclude-pattern>tests/PHPUnit/*</exclude-pattern>
<exclude-pattern>plugins/*/tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<!-- Allow using multiple classes in one file for tests -->
<exclude-pattern>tests/PHPUnit/*</exclude-pattern>
<exclude-pattern>plugins/*/tests/*</exclude-pattern>
</rule>
</ruleset>