public class CodeNarcExtension extends CodeQualityExtension
CodeNarc
Constructor and Description |
---|
CodeNarcExtension(Project project) |
Modifier and Type | Method and Description |
---|---|
TextResource |
getConfig()
The CodeNarc configuration to use.
|
File |
getConfigFile()
The CodeNarc configuration file to use.
|
int |
getMaxPriority1Violations()
The maximum number of priority 1 violations allowed before failing the build.
|
int |
getMaxPriority2Violations()
The maximum number of priority 2 violations allowed before failing the build.
|
int |
getMaxPriority3Violations()
The maximum number of priority 3 violations allowed before failing the build.
|
String |
getReportFormat()
The format type of the CodeNarc report.
|
void |
setConfig(TextResource config)
The CodeNarc configuration to use.
|
void |
setConfigFile(File file)
The CodeNarc configuration file to use.
|
void |
setMaxPriority1Violations(int maxPriority1Violations)
The maximum number of priority 1 violations allowed before failing the build.
|
void |
setMaxPriority2Violations(int maxPriority2Violations)
The maximum number of priority 2 violations allowed before failing the build.
|
void |
setMaxPriority3Violations(int maxPriority3Violations)
The maximum number of priority 3 violations allowed before failing the build.
|
void |
setReportFormat(String reportFormat)
The format type of the CodeNarc report.
|
getReportsDir, getSourceSets, getToolVersion, isIgnoreFailures, setIgnoreFailures, setReportsDir, setSourceSets, setToolVersion
public CodeNarcExtension(Project project)
@Incubating public TextResource getConfig()
configFile
property.@Incubating public void setConfig(TextResource config)
configFile
property.public File getConfigFile()
public void setConfigFile(File file)
public int getMaxPriority1Violations()
public void setMaxPriority1Violations(int maxPriority1Violations)
public int getMaxPriority2Violations()
public void setMaxPriority2Violations(int maxPriority2Violations)
public int getMaxPriority3Violations()
public void setMaxPriority3Violations(int maxPriority3Violations)
public String getReportFormat()
public void setReportFormat(String reportFormat)