Files
SyliusGDPRPlugin/ruleset/.php_md.xml
Luca Gallois fced88106e Init dev tools
2021-05-14 15:25:32 +02:00

68 lines
2.3 KiB
XML

<?xml version='1.0' encoding="UTF-8"?>
<ruleset name="Mess Detector Rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Mess Detector Rules</description>
<rule ref="rulesets/codesize.xml">
<exclude name="CyclomaticComplexity"/>
<exclude name="ExcessiveParameterList"/>
</rule>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="15"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
<properties>
<property name="minimum" value="15"/>
</properties>
</rule>
<rule ref="rulesets/controversial.xml"/>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="ShortMethodName"/>
<exclude name="LongClassName"/>
</rule>
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="minimum" value="3"/>
<property name="exceptions" value="id,io"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/ShortMethodName">
<properties>
<property name="minimum" value="3"/>
<property name="exceptions" value="up"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/LongVariable">
<properties>
<property name="maximum" value="50"/>
</properties>
</rule>
<rule ref="rulesets/design.xml/NumberOfChildren">
<properties>
<property name="minimum" value="50"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml/LongClassName">
<properties>
<property name="maximum" value="60"/>
</properties>
</rule>
<exclude-pattern>src/Migrations/*</exclude-pattern>
<exclude-pattern>src/DependencyInjection/*</exclude-pattern>
<exclude-pattern>src/SynoliaSyliusGDPRPlugin.php</exclude-pattern>
<exclude-pattern>src/Kernel.php</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</ruleset>