JacocoViolationRule

Defines a Jacoco violation rule.

Since

3.4

Functions

Link copied to clipboard
abstract fun getElement(): String
Gets the element for the rule as defined by org.jacoco.core.analysis.ICoverageNode.ElementType.
Link copied to clipboard
abstract fun getExcludes(): List<String>
List of elements that should be excluded from check.
Link copied to clipboard
abstract fun getIncludes(): List<String>
List of elements that should be included in check.
Link copied to clipboard
abstract fun getLimits(): List<JacocoLimit>
Gets all limits defined for this rule.
Link copied to clipboard
abstract fun isEnabled(): Boolean
Indicates if the rule should be used when checking generated coverage metrics.
Link copied to clipboard
abstract fun limit(configureAction: Action<in JacocoLimit>): JacocoLimit
Adds a limit for this rule.
Link copied to clipboard
abstract fun setElement(element: String)
Sets element for the rule.
Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Link copied to clipboard
abstract fun setExcludes(excludes: List<String>)
Sets list of elements that should be excluded from check.
Link copied to clipboard
abstract fun setIncludes(includes: List<String>)
Sets list of elements that should be included in check.