2021-08-18 17:07:10 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2026-07-20 17:52:37 +02:00
|
|
|
<ruleset name="Php Coding Standard"
|
2023-08-21 10:22:07 +02:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
2026-07-20 17:52:37 +02:00
|
|
|
|
|
|
|
|
<description>Standard optimisé : Analyse statique complémentaire à Pint.</description>
|
|
|
|
|
|
2021-08-18 17:07:10 +02:00
|
|
|
<arg name="colors" />
|
|
|
|
|
<arg name="extensions" value="php" />
|
2026-07-20 17:52:37 +02:00
|
|
|
<arg name="parallel" value="75" />
|
2021-08-18 17:07:10 +02:00
|
|
|
<file>app/</file>
|
|
|
|
|
<file>config/</file>
|
2026-07-20 17:52:37 +02:00
|
|
|
<file>database/</file>
|
2021-08-18 17:07:10 +02:00
|
|
|
<file>routes/</file>
|
2026-07-20 17:52:37 +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-08-18 17:07:10 +02:00
|
|
|
|
2022-01-07 11:17:16 +01:00
|
|
|
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
|
|
|
|
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
|
|
|
|
|
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
2026-07-20 17:52:37 +02:00
|
|
|
<rule ref="Generic.Metrics.CyclomaticComplexity">
|
|
|
|
|
<properties>
|
|
|
|
|
<property name="complexity" value="10"/>
|
|
|
|
|
<property name="absoluteComplexity" value="20"/>
|
|
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2022-01-07 11:17:16 +01:00
|
|
|
<rule ref="Generic.Metrics.NestingLevel"/>
|
2026-07-20 17:52:37 +02:00
|
|
|
|
2022-01-07 11:17:16 +01: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-07-20 17:52:37 +02:00
|
|
|
|
|
|
|
|
<rule ref="Generic.NamingConventions.ConstructorName"/>
|
|
|
|
|
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>
|
|
|
|
|
|
|
|
|
|
<rule ref="Generic.Files.LineLength">
|
2021-08-18 17:07:10 +02:00
|
|
|
<properties>
|
2026-07-20 17:52:37 +02:00
|
|
|
<property name="lineLimit" value="150"/>
|
|
|
|
|
<property name="absoluteLineLimit" value="250"/>
|
2021-08-18 17:07:10 +02:00
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2026-07-20 17:52:37 +02:00
|
|
|
|
|
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses" />
|
|
|
|
|
|
|
|
|
|
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
|
2022-01-07 11:17:16 +01:00
|
|
|
<properties>
|
2026-07-20 17:52:37 +02:00
|
|
|
<property name="spacesCountAroundEqualsSign" value="0" />
|
|
|
|
|
<property name="declareOnFirstLine" value="false" />
|
|
|
|
|
<property name="linesCountBeforeDeclare" value="1" />
|
|
|
|
|
<property name="linesCountAfterDeclare" value="1" />
|
2022-01-07 11:17:16 +01:00
|
|
|
</properties>
|
|
|
|
|
</rule>
|
2021-08-18 17:07:10 +02:00
|
|
|
|
|
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
|
|
|
|
<exclude-pattern>*/database/migrations/*</exclude-pattern>
|
|
|
|
|
</rule>
|
2022-01-07 11:17:16 +01:00
|
|
|
|
2021-08-18 17:07:10 +02:00
|
|
|
</ruleset>
|