api / org.gradle.api.plugins.quality / CodeNarcExtension / setMaxPriority1Violations

setMaxPriority1Violations

open fun setMaxPriority1Violations(maxPriority1Violations: Int): Unit

The maximum number of priority 1 violations allowed before failing the build.