Files
FHC-Core/tests/phpmd/rulesets.xml
T
2024-10-17 15:34:00 +02:00

31 lines
1.2 KiB
XML

<?xml version="1.0"?>
<ruleset name="Strictly necessary PHPMD rule set"
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>
Performs the strictly necessary checks before the code can be merged into the main branch and then deployed to production
</description>
<!-- Ignored directories -->
<exclude-pattern>\.git</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>tests</exclude-pattern>
<exclude-pattern>application/controllers/api/v1</exclude-pattern>
<exclude-pattern>application/extensions</exclude-pattern>
<exclude-pattern>addons</exclude-pattern>
<!-- Import the clean code rule set -->
<rule ref="rulesets/cleancode.xml">
<!-- Exclude the ElseExpression rule -->
<exclude name="ElseExpression" />
</rule>
<!-- Import the entire unused code rule set -->
<rule ref="rulesets/unusedcode.xml" />
<!-- Import the DevelopmentCodeFragment rule from the design rule set -->
<rule ref="rulesets/design.xml/DevelopmentCodeFragment" />
</ruleset>