For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

JacocoViolationRulesContainer

The violation rules configuration for the org.gradle.testing.jacoco.tasks.JacocoReport task.

Since

3.4

Functions

Link copied to clipboard
Gets all violation rules.
Link copied to clipboard
Specifies whether build should fail in case of rule violations.
Link copied to clipboard
abstract fun rule(configureAction: Action<in JacocoViolationRule>): JacocoViolationRule
Adds a violation rule.
Link copied to clipboard
abstract fun setFailOnViolation(ignore: Boolean)
Indicates whether build should fail in case of rule violation.