IViolationsOutputpublic class ReportTask.CheckFormatterElement extends java.lang.Object implements IViolationsOutput
| Constructor | Description |
|---|---|
CheckFormatterElement() |
| Modifier and Type | Method | Description |
|---|---|---|
Rule |
createRule() |
Creates and adds a new rule.
|
IReportVisitor |
createVisitor() |
|
void |
onViolation(ICoverageNode node,
Rule rule,
Limit limit,
java.lang.String message) |
Called for every rule violation.
|
void |
setFailOnViolation(boolean flag) |
Sets whether the build should fail in case of a violation.
|
void |
setViolationsProperty(java.lang.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(java.lang.String property)
property - name of a propertypublic IReportVisitor createVisitor() throws java.io.IOException
java.io.IOExceptionpublic void onViolation(ICoverageNode node, Rule rule, Limit limit, java.lang.String message)
IViolationsOutputonViolation in interface IViolationsOutputnode - node which violates a rulerule - rule which is violatedlimit - limit which is violatedmessage - readable message describing this violationCopyright © 2018. All rights reserved.