public class ReportTask.CheckFormatterElement extends Object implements org.jacoco.report.check.IViolationsOutput
| Constructor and Description |
|---|
ReportTask.CheckFormatterElement() |
| Modifier and Type | Method and Description |
|---|---|
org.jacoco.report.check.Rule |
createRule()
Creates and adds a new rule.
|
org.jacoco.report.IReportVisitor |
createVisitor() |
void |
onViolation(org.jacoco.core.analysis.ICoverageNode node,
org.jacoco.report.check.Rule rule,
org.jacoco.report.check.Limit limit,
String message) |
void |
setFailOnViolation(boolean flag)
Sets whether the build should fail in case of a violation.
|
void |
setViolationsProperty(String property)
Sets the name of a property to append the violation messages to.
|
public org.jacoco.report.check.Rule createRule()
public void setFailOnViolation(boolean flag)
true.flag - if true the build fails on violationpublic void setViolationsProperty(String property)
property - name of a propertypublic org.jacoco.report.IReportVisitor createVisitor()
throws IOException
IOExceptionpublic void onViolation(org.jacoco.core.analysis.ICoverageNode node,
org.jacoco.report.check.Rule rule,
org.jacoco.report.check.Limit limit,
String message)
onViolation in interface org.jacoco.report.check.IViolationsOutputCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.