Interface JacocoViolationRule
- All Superinterfaces:
- Serializable
Defines a Jacoco violation rule.
- Since:
- 3.4
- 
Method SummaryModifier and TypeMethodDescriptionGets the element for the rule as defined by org.jacoco.core.analysis.ICoverageNode.ElementType.List of elements that should be excluded from check.List of elements that should be included in check.Gets all limits defined for this rule.booleanIndicates if the rule should be used when checking generated coverage metrics.limit(Action<? super JacocoLimit> configureAction) Adds a limit for this rule.voidsetElement(String element) Sets element for the rule.voidsetEnabled(boolean enabled) voidsetExcludes(List<String> excludes) Sets list of elements that should be excluded from check.voidsetIncludes(List<String> includes) Sets list of elements that should be included in check.
- 
Method Details- 
setEnabledvoid setEnabled(boolean enabled) 
- 
isEnabledIndicates if the rule should be used when checking generated coverage metrics. Defaults to true.
- 
setElementSets element for the rule.- Parameters:
- element- Element
 
- 
getElementGets the element for the rule as defined by org.jacoco.core.analysis.ICoverageNode.ElementType. Valid scope values are BUNDLE, PACKAGE, CLASS, SOURCEFILE and METHOD. Defaults to BUNDLE.
- 
setIncludesSets list of elements that should be included in check.- Parameters:
- includes- Inclusions
 
- 
getIncludesList of elements that should be included in check. Names can use wildcards (* and ?). If left empty, all elements will be included. Defaults to [*].
- 
setExcludesSets list of elements that should be excluded from check.- Parameters:
- excludes- Exclusions
 
- 
getExcludesList of elements that should be excluded from check. Names can use wildcards (* and ?). If left empty, no elements will be excluded. Defaults to an empty list.
- 
getLimitsGets all limits defined for this rule. Defaults to an empty list.
- 
limitAdds a limit for this rule. Any number of limits can be added.
 
-