Download phpcs.xml from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/c548ca986e8faeb51146eaca0e0d0cfcdfd6d85f/phpcs.xml
- Command line
-
hf download hf://spaces/Leon4gr45/matomo@c548ca986e8faeb51146eaca0e0d0cfcdfd6d85f/phpcs.xml
-
curl -L -o phpcs.xml https://huggingface.co/spaces/Leon4gr45/matomo/resolve/c548ca986e8faeb51146eaca0e0d0cfcdfd6d85f/phpcs.xml
2.29 kB
| <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 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> | |
| <rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma" /> | |
| <rule ref="SlevomatCodingStandard.Commenting.EmptyComment" /> | |
| <rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments"> | |
| <properties> | |
| <property name="forbiddenCommentPatterns" type="array"> | |
| <element value="/^Constructor.?$/" /> | |
| </property> | |
| </properties> | |
| </rule> | |
| <rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment" /> | |
| <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" /> | |
| <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation" /> | |
| <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation" /> | |
| </ruleset> | |