|
35 | 35 | <hamcrest.version>2.2</hamcrest.version> |
36 | 36 | <okhttp3.version>3.12.3</okhttp3.version> |
37 | 37 | <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> |
39 | 42 | <!-- For non-ci builds we'd like the build to still complete if jacoco metrics aren't met. --> |
40 | 43 | <jacoco.haltOnFailure>false</jacoco.haltOnFailure> |
41 | 44 | </properties> |
|
328 | 331 | <limits> |
329 | 332 | <!-- These limits can be overridden, in the form of `0.50` for --> |
330 | 333 | <!-- 50%, as necessary. Using a property just puts it in one spot. --> |
| 334 | +<!-- |
331 | 335 | <limit> |
332 | 336 | <counter>LINE</counter> |
333 | 337 | <value>COVEREDRATIO</value> |
334 | | - <minimum>${jacoco.coverage.target}</minimum> |
| 338 | + <minimum>${jacoco.coverage.target.lines}</minimum> |
335 | 339 | </limit> |
| 340 | +--> |
| 341 | +<!-- |
336 | 342 | <limit> |
337 | 343 | <counter>BRANCH</counter> |
338 | 344 | <value>COVEREDRATIO</value> |
339 | | - <minimum>${jacoco.coverage.target}</minimum> |
| 345 | + <minimum>${jacoco.coverage.target.other}</minimum> |
340 | 346 | </limit> |
| 347 | +--> |
| 348 | +<!-- |
341 | 349 | <limit> |
342 | 350 | <counter>INSTRUCTION</counter> |
343 | 351 | <value>COVEREDRATIO</value> |
344 | | - <minimum>${jacoco.coverage.target}</minimum> |
| 352 | + <minimum>${jacoco.coverage.target.other}</minimum> |
345 | 353 | </limit> |
| 354 | +--> |
| 355 | +<!-- |
346 | 356 | <limit> |
347 | 357 | <counter>COMPLEXITY</counter> |
348 | 358 | <value>COVEREDRATIO</value> |
349 | | - <minimum>${jacoco.coverage.target}</minimum> |
| 359 | + <minimum>${jacoco.coverage.target.other}</minimum> |
350 | 360 | </limit> |
| 361 | +--> |
351 | 362 | <limit> |
352 | 363 | <counter>METHOD</counter> |
353 | 364 | <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> |
360 | 366 | </limit> |
| 367 | +<!-- <limit>--> |
| 368 | +<!-- <counter>CLASS</counter>--> |
| 369 | +<!-- <value>COVEREDRATIO</value>--> |
| 370 | +<!-- <minimum>${jacoco.coverage.target.class}</minimum>--> |
| 371 | +<!-- </limit>--> |
361 | 372 | </limits> |
362 | 373 | <excludes> |
| 374 | + <exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.**</exclude> |
363 | 375 | <exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory</exclude> |
364 | 376 | <exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude> |
365 | 377 | <!--<exclude>io.jenkins.plugins.todeclarative.converter.api.*</exclude>--> |
|
0 commit comments