| API Documentation: | CodeNarcExtension |
|---|
| Property | Description |
configFile | The CodeNarc configuration file to use. |
ignoreFailures | Whether or not to allow the build to continue if there are warnings. Example: ignoreFailures = true |
reportFormat | The format type of the CodeNarc report. One of |
reportsDir | The directory where reports will be generated. |
sourceSets | The source sets to be analyzed as part of the |
toolVersion | The version of the code quality tool to be used. |
File configFile
The CodeNarc configuration file to use.
- Default with
codenarcplugin: ${project.projectDir}/config/codenarc/codenarc.xml- Default with
code-qualityplugin: project.codeNarcConfigFile
Whether or not to allow the build to continue if there are warnings. Example: ignoreFailures = true
- Default:
false
String reportFormat
The format type of the CodeNarc report. One of html, xml, text, console.
- Default with
codenarcplugin: html- Default with
code-qualityplugin: project.codeNarcReportsFormat
File reportsDir
The directory where reports will be generated.
Collection<SourceSet> sourceSets
Collection<SourceSet>The source sets to be analyzed as part of the check and build tasks.
- Default:
project.sourceSets
String toolVersion
The version of the code quality tool to be used.