53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ruleset name="Php Coding Standard"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
|
|
<description>Standard optimisé: Analyse statique complémentaire à Pint.</description>
|
|
|
|
<arg name="colors" />
|
|
<arg name="extensions" value="php" />
|
|
<arg name="parallel" value="75" />
|
|
<file>src/</file>
|
|
<file>tests/</file>
|
|
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/storage/*</exclude-pattern>
|
|
<exclude-pattern>_ide_helper.php</exclude-pattern>
|
|
<exclude-pattern>*/.intellipest/*</exclude-pattern>
|
|
|
|
<rule ref="PSR12"/>
|
|
|
|
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
|
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
|
|
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
|
<rule ref="Generic.Metrics.CyclomaticComplexity">
|
|
<properties>
|
|
<property name="complexity" value="10"/>
|
|
<property name="absoluteComplexity" value="20"/>
|
|
</properties>
|
|
</rule>
|
|
<rule ref="Generic.Metrics.NestingLevel"/>
|
|
|
|
<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"/>
|
|
|
|
<rule ref="Generic.NamingConventions.ConstructorName"/>
|
|
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>
|
|
|
|
<rule ref="Generic.Files.LineLength">
|
|
<properties>
|
|
<property name="lineLimit" value="150"/>
|
|
<property name="absoluteLineLimit" value="250"/>
|
|
</properties>
|
|
</rule>
|
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
|
<exclude-pattern>*/database/migrations/*</exclude-pattern>
|
|
</rule>
|
|
|
|
</ruleset>
|