api / org.gradle.api.plugins.quality / CheckstyleExtension / getMaxWarnings

getMaxWarnings

open fun getMaxWarnings(): Int

The maximum number of warnings that are tolerated before breaking the build or setting the failure property. Defaults to Integer.MAX_VALUE.

Example: maxWarnings = 1000

Since
3.4

Return
the maximum number of warnings allowed