Added excludes to PHPMD and PHPCS rule sets

This commit is contained in:
Paolo
2022-02-11 11:01:44 +01:00
parent 6066da470e
commit 598575a194
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -2,11 +2,13 @@
<ruleset name="FHComplete">
<description>FHComplete's coding standard</description>
<!-- Ignored directories if phpcs is running from command line -->
<!-- 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>
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration" />
+3 -1
View File
@@ -9,11 +9,13 @@
Performs the strictly necessary checks before the code can be merged into the main branch and then deployed to production
</description>
<!-- Ignored directories if phpmd is running from command line -->
<!-- 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 entire clean code rule set -->
<rule ref="rulesets/cleancode.xml" />