2021-03-18 08:40:20 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2026-06-14 21:32:07 +02:00
|
|
|
<ruleset name="Php Coding Standard"
|
2022-09-08 11:18:37 +02:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
<description>Standard optimisé : Analyse statique complémentaire à Pint.</description>
|
|
|
|
|
|
2021-03-18 08:40:20 +01:00
|
|
|
<arg name="colors" />
|
2026-09-28 18:46:30 +02:00
|
|
|
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
|
2021-03-18 08:40:20 +01:00
|
|
|
<arg name="extensions" value="php" />
|
2026-06-14 21:32:07 +02:00
|
|
|
<arg name="parallel" value="75" />
|
2021-03-18 08:40:20 +01:00
|
|
|
<file>app/</file>
|
|
|
|
|
<file>config/</file>
|
2026-06-14 21:32:07 +02:00
|
|
|
<file>database/</file>
|
2021-03-18 08:40:20 +01:00
|
|
|
<file>routes/</file>
|
2026-06-14 21:32:07 +02:00
|
|
|
<file>tests/</file>
|
|
|
|
|
|
|
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
|
|
|
<exclude-pattern>*/storage/*</exclude-pattern>
|
|
|
|
|
<exclude-pattern>_ide_helper.php</exclude-pattern>
|
|
|
|
|
<exclude-pattern>*/tests/*</exclude-pattern>
|
|
|
|
|
|
|
|
|
|
<rule ref="PSR12"/>
|
2021-03-18 08:40:20 +01:00
|
|
|
|
2022-09-08 11:18:37 +02:00
|
|
|
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
|
|
|
|
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
|
|
|
|
|
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
2026-06-14 21:32:07 +02:00
|
|
|
<rule ref="Generic.Metrics.CyclomaticComplexity">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="complexity" value="10"/>
|
|
|
|
|
<property name="absoluteComplexity" value="20"/>
|
|
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2022-09-08 11:18:37 +02:00
|
|
|
<rule ref="Generic.Metrics.NestingLevel"/>
|
2026-06-14 21:32:07 +02:00
|
|
|
|
2022-09-08 11:18:37 +02:00
|
|
|
<rule ref="Generic.PHP.DeprecatedFunctions"/>
|
|
|
|
|
<rule ref="Generic.PHP.ForbiddenFunctions"/>
|
|
|
|
|
<rule ref="Generic.PHP.NoSilencedErrors"/>
|
|
|
|
|
<rule ref="Squiz.PHP.Eval"/>
|
|
|
|
|
<rule ref="Squiz.PHP.GlobalKeyword"/>
|
|
|
|
|
<rule ref="Squiz.PHP.NonExecutableCode"/>
|
|
|
|
|
<rule ref="Squiz.Scope.StaticThisUsage"/>
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
<rule ref="Generic.NamingConventions.ConstructorName"/>
|
|
|
|
|
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>
|
|
|
|
|
|
|
|
|
|
<rule ref="Generic.Files.LineLength">
|
2021-03-18 08:40:20 +01:00
|
|
|
<properties>
|
2026-06-14 21:32:07 +02:00
|
|
|
<property name="lineLimit" value="150"/>
|
|
|
|
|
<property name="absoluteLineLimit" value="250"/>
|
2022-04-14 16:38:47 +02:00
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2026-06-14 21:32:07 +02:00
|
|
|
|
2026-10-02 20:08:15 +02:00
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="searchAnnotations" value="true" />
|
|
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2026-06-14 21:32:07 +02:00
|
|
|
|
|
|
|
|
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
|
2022-04-14 16:38:47 +02:00
|
|
|
<properties>
|
2026-06-14 21:32:07 +02:00
|
|
|
<property name="spacesCountAroundEqualsSign" value="0" />
|
|
|
|
|
<property name="declareOnFirstLine" value="false" />
|
|
|
|
|
<property name="linesCountBeforeDeclare" value="1" />
|
|
|
|
|
<property name="linesCountAfterDeclare" value="1" />
|
2021-03-18 08:40:20 +01:00
|
|
|
</properties>
|
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
|
|
|
|
<exclude-pattern>*/database/migrations/*</exclude-pattern>
|
|
|
|
|
</rule>
|
2022-04-14 16:38:47 +02:00
|
|
|
|
2021-03-18 08:40:20 +01:00
|
|
|
</ruleset>
|