Skip to content

Commit efb87c5

Browse files
committed
Adjust Jacoco targets to further point to untouched classes.
1 parent 061e8bb commit efb87c5

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

pom.xml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
<hamcrest.version>2.2</hamcrest.version>
3636
<okhttp3.version>3.12.3</okhttp3.version>
3737
<okio.version>2.4.1</okio.version>
38-
<jacoco.coverage.target>0.20</jacoco.coverage.target>
38+
<jacoco.coverage.target.class>.80</jacoco.coverage.target.class>
39+
<jacoco.coverage.target.method>0.20</jacoco.coverage.target.method>
40+
<jacoco.coverage.target.line>0.50</jacoco.coverage.target.line>
41+
<jacoco.coverage.target.other>0.50</jacoco.coverage.target.other>
3942
<!-- For non-ci builds we'd like the build to still complete if jacoco metrics aren't met. -->
4043
<jacoco.haltOnFailure>false</jacoco.haltOnFailure>
4144
</properties>
@@ -328,38 +331,47 @@
328331
<limits>
329332
<!-- These limits can be overridden, in the form of `0.50` for -->
330333
<!-- 50%, as necessary. Using a property just puts it in one spot. -->
334+
<!--
331335
<limit>
332336
<counter>LINE</counter>
333337
<value>COVEREDRATIO</value>
334-
<minimum>${jacoco.coverage.target}</minimum>
338+
<minimum>${jacoco.coverage.target.lines}</minimum>
335339
</limit>
340+
-->
341+
<!--
336342
<limit>
337343
<counter>BRANCH</counter>
338344
<value>COVEREDRATIO</value>
339-
<minimum>${jacoco.coverage.target}</minimum>
345+
<minimum>${jacoco.coverage.target.other}</minimum>
340346
</limit>
347+
-->
348+
<!--
341349
<limit>
342350
<counter>INSTRUCTION</counter>
343351
<value>COVEREDRATIO</value>
344-
<minimum>${jacoco.coverage.target}</minimum>
352+
<minimum>${jacoco.coverage.target.other}</minimum>
345353
</limit>
354+
-->
355+
<!--
346356
<limit>
347357
<counter>COMPLEXITY</counter>
348358
<value>COVEREDRATIO</value>
349-
<minimum>${jacoco.coverage.target}</minimum>
359+
<minimum>${jacoco.coverage.target.other}</minimum>
350360
</limit>
361+
-->
351362
<limit>
352363
<counter>METHOD</counter>
353364
<value>COVEREDRATIO</value>
354-
<minimum>${jacoco.coverage.target}</minimum>
355-
</limit>
356-
<limit>
357-
<counter>CLASS</counter>
358-
<value>COVEREDRATIO</value>
359-
<minimum>${jacoco.coverage.target}</minimum>
365+
<minimum>${jacoco.coverage.target.method}</minimum>
360366
</limit>
367+
<!-- <limit>-->
368+
<!-- <counter>CLASS</counter>-->
369+
<!-- <value>COVEREDRATIO</value>-->
370+
<!-- <minimum>${jacoco.coverage.target.class}</minimum>-->
371+
<!-- </limit>-->
361372
</limits>
362373
<excludes>
374+
<exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.**</exclude>
363375
<exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory</exclude>
364376
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
365377
<!--<exclude>io.jenkins.plugins.todeclarative.converter.api.*</exclude>-->

0 commit comments

Comments
 (0)