Ignore paths for global tests

This commit is contained in:
Dennis Eichhorn 2018-09-23 14:46:38 +02:00
parent cbcf87e11a
commit bf1d510eba
2 changed files with 22 additions and 4 deletions

View File

@ -2,9 +2,17 @@
<ruleset name="default">
<description></description>
<exclude-pattern>*.tpl.php</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*Routes.php</exclude-pattern>
<exclude-pattern>*ObjLoader.js</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/Demo/*</exclude-pattern>
<exclude-pattern>*/Build/*</exclude-pattern>
<exclude-pattern>*/Cache/*</exclude-pattern>
<exclude-pattern>*/Docs/*</exclude-pattern>
<exclude-pattern>*/Documentation/*</exclude-pattern>
<exclude-pattern>*/Resources/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/Routes/*</exclude-pattern>
<arg value="q"/>
<arg name="colors"/>
@ -57,13 +65,13 @@
<rule ref="Generic.Formatting.MultipleStatementAlignment"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<!--<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="15"/>
<property name="absoluteComplexity" value="25"/>
</properties>
<exclude-pattern>*Measurement.php</exclude-pattern><!-- Very simple switch statements -->
</rule>
<exclude-pattern>*Measurement.php</exclude-pattern>
</rule> -->
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="nestingLevel" value="5"/>

View File

@ -20,4 +20,14 @@ parameters:
- *.tpl.php
- */tests/*
- */test/*
- *Test.php
- *Test.php
- *Routes.php
- *ObjLoader.js
- */vendor/*
- */Demo/*
- */Build/*
- */Cache/*
- */Docs/*
- */Documentation/*
- */Resources/*
- */Routes/*