Schnittstelle JacocoViolationRulesContainer
public interface JacocoViolationRulesContainer
The violation rules configuration for the
JacocoReport task.- Seit:
- 3.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetRules()Gets all violation rules.booleanSpecifies whether build should fail in case of rule violations.rule(Action<? super JacocoViolationRule> configureAction) Adds a violation rule.voidsetFailOnViolation(boolean ignore) Indicates whether build should fail in case of rule violation.
-
Methodendetails
-
setFailOnViolation
void setFailOnViolation(boolean ignore) Indicates whether build should fail in case of rule violation.- Parameter:
ignore- Only render violation but do not fail build
-
isFailOnViolation
Specifies whether build should fail in case of rule violations. Defaults to true. -
getRules
Gets all violation rules. Defaults to an empty list. -
rule
Adds a violation rule. Any number of rules can be added.
-