public class ReportTask.CheckFormatterElement extends Object implements IViolationsOutput
| Constructor and Description |
|---|
CheckFormatterElement() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
createRule()
Creates and adds a new rule.
|
IReportVisitor |
createVisitor() |
void |
onViolation(ICoverageNode node,
Rule rule,
Limit limit,
String message)
Called for every rule violation.
|
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 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 IReportVisitor createVisitor() throws IOException
IOExceptionpublic void onViolation(ICoverageNode node, Rule rule, Limit limit, String message)
IViolationsOutputonViolation in interface IViolationsOutputnode - node which violates a rulerule - rule which is violatedlimit - limit which is violatedmessage - readable message describing this violationCopyright © 2024. All rights reserved.