|
71 | 71 | <enforcer.skipEnforceScopeLoggerBridges>false</enforcer.skipEnforceScopeLoggerBridges> |
72 | 72 | <enforcer.skipEnforceScopeLombok>false</enforcer.skipEnforceScopeLombok> |
73 | 73 | <enforcer.skipBanGeneratedModulesReference>false</enforcer.skipBanGeneratedModulesReference> |
| 74 | + <!-- Test coverage --> |
| 75 | + <coverage.instruction>74%</coverage.instruction> |
| 76 | + <coverage.branch>68%</coverage.branch> |
| 77 | + <coverage.complexity>67%</coverage.complexity> |
| 78 | + <coverage.line>75%</coverage.line> |
| 79 | + <coverage.method>80%</coverage.method> |
| 80 | + <coverage.class>85%</coverage.class> |
74 | 81 | </properties> |
75 | 82 |
|
76 | 83 | <dependencyManagement> |
@@ -488,6 +495,61 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma |
488 | 495 | <exclude>com/sap/ai/sdk/app/**/*</exclude> |
489 | 496 | </excludes> |
490 | 497 | </configuration> |
| 498 | + <executions> |
| 499 | + <execution> |
| 500 | + <id>default-prepare-agent</id> |
| 501 | + <goals> |
| 502 | + <goal>prepare-agent</goal> |
| 503 | + </goals> |
| 504 | + </execution> |
| 505 | + <execution> |
| 506 | + <id>default-report</id> |
| 507 | + <goals> |
| 508 | + <goal>report</goal> |
| 509 | + </goals> |
| 510 | + <phase>prepare-package</phase> |
| 511 | + </execution> |
| 512 | + <execution> |
| 513 | + <id>default-check</id> |
| 514 | + <goals> |
| 515 | + <goal>check</goal> |
| 516 | + </goals> |
| 517 | + <configuration> |
| 518 | + <rules> |
| 519 | + <rule> |
| 520 | + <element>BUNDLE</element> |
| 521 | + <limits> |
| 522 | + <limit> |
| 523 | + <counter>COMPLEXITY</counter> |
| 524 | + <value>COVEREDRATIO</value> |
| 525 | + <minimum>${coverage.complexity}</minimum> |
| 526 | + </limit> |
| 527 | + <limit> |
| 528 | + <counter>LINE</counter> |
| 529 | + <value>COVEREDRATIO</value> |
| 530 | + <minimum>${coverage.line}</minimum> |
| 531 | + </limit> |
| 532 | + <limit> |
| 533 | + <counter>INSTRUCTION</counter> |
| 534 | + <value>COVEREDRATIO</value> |
| 535 | + <minimum>${coverage.instruction}</minimum> |
| 536 | + </limit> |
| 537 | + <limit> |
| 538 | + <counter>BRANCH</counter> |
| 539 | + <value>COVEREDRATIO</value> |
| 540 | + <minimum>${coverage.branch}</minimum> |
| 541 | + </limit> |
| 542 | + <limit> |
| 543 | + <counter>CLASS</counter> |
| 544 | + <value>COVEREDRATIO</value> |
| 545 | + <minimum>${coverage.class}</minimum> |
| 546 | + </limit> |
| 547 | + </limits> |
| 548 | + </rule> |
| 549 | + </rules> |
| 550 | + </configuration> |
| 551 | + </execution> |
| 552 | + </executions> |
491 | 553 | </plugin> |
492 | 554 | <plugin> |
493 | 555 | <!-- Needed because GitHub actions uses an old Maven version <3.9.0 --> |
|
0 commit comments