oai-pmh2/.phpmd.dist.xml

42 lines
1.5 KiB
XML
Raw Normal View History

2024-08-09 12:29:36 +02:00
<?xml version="1.0"?>
<ruleset name="OCC Default PHPMD Ruleset"
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>
2024-09-30 19:37:29 +02:00
Open Culture Consulting follows PHP Mess Detector standards with few exceptions.
2024-08-09 12:29:36 +02:00
</description>
<rule ref="rulesets/cleancode.xml">
2024-09-30 19:37:29 +02:00
<!--
We sometimes want to use else expressions for better readability.
-->
2024-08-09 12:29:36 +02:00
<exclude name="ElseExpression" />
<exclude name="StaticAccess" />
2024-09-30 19:37:29 +02:00
<exclude name="BooleanArgumentFlag" />
2024-08-09 12:29:36 +02:00
</rule>
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/controversial.xml" />
<rule ref="rulesets/design.xml" />
2024-09-30 19:37:29 +02:00
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
</rule>
<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<!--
We want to allow shorter variable names as long as they are self-explanatory.
-->
<property name="minimum" value="2" />
</properties>
</rule>
2024-08-09 12:29:36 +02:00
<rule ref="rulesets/unusedcode.xml">
2024-09-30 19:37:29 +02:00
<!--
We have to declare unused parameters to satisfy interface requirements.
-->
2024-08-09 12:29:36 +02:00
<exclude name="UnusedFormalParameter" />
</rule>
</ruleset>