api / org.gradle.api.plugins.quality / PmdExtension / getRulePriority

getRulePriority

@Incubating open fun getRulePriority(): Int

The rule priority threshold; violations for rules with a lower priority will not be reported. Default value is 5, which means that all violations will be reported. This is equivalent to PMD's Ant task minimumPriority property. See the official documentation for the list of priorities. Example: rulePriority = 3