Package: org.gradle.api.plugins.quality

## [Groovy] Class CodeNarcExtension

- org.gradle.api.plugins.quality.CodeNarcExtension

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `File` | `configFile` The CodeNarc configuration file to use.
    `int` | `maxPriority1Violations` The maximum number of priority 1 violations allowed before failing the build.
    `int` | `maxPriority2Violations` The maximum number of priority 2 violations allowed before failing the build.
    `int` | `maxPriority3Violations` The maximum number of priority 3 violations allowed before failing the build.
    `String` | `reportFormat` The format type of the CodeNarc report.

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `setReportFormat(String reportFormat)`

- - ### Property Detail

    - #### File configFile

      The CodeNarc configuration file to use.

    - #### int maxPriority1Violations

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

    - #### int maxPriority2Violations

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

    - #### int maxPriority3Violations

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

    - #### String reportFormat

      The format type of the CodeNarc report. One of `html`, `xml`, `text`, `console`.

  - ### Method Detail

    - #### void setReportFormat(String reportFormat)