mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
9f28db36b8
- Commented tests/codesniffer/FHComplete/ruleset.xml - Removed redundant PHPCS checks already performed by PHPMD - Added/removed checks from PHPCS to be compliant with the FHComplete coding style - PHPMD: Removed the ElseExpression rule from the rulesets/cleancode.xml
31 lines
1.2 KiB
XML
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>
|
|
|