Interface JacocoViolationRulesContainer
public interface JacocoViolationRulesContainer
The violation rules configuration for the 
JacocoReport task.- Since:
- 3.4
- 
Method SummaryModifier and TypeMethodDescriptiongetRules()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.
- 
Method Details- 
setFailOnViolationvoid setFailOnViolation(boolean ignore) Indicates whether build should fail in case of rule violation.- Parameters:
- ignore- Only render violation but do not fail build
 
- 
isFailOnViolationSpecifies whether build should fail in case of rule violations. Defaults to true.
- 
getRulesGets all violation rules. Defaults to an empty list.
- 
ruleAdds a violation rule. Any number of rules can be added.
 
-