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) |
void |
setConfigFile(File file)
The CodeNarc configuration file to use.
|
void |
setMaxPriority1Violations(int maxPriority1Violations) |
void |
setMaxPriority2Violations(int maxPriority2Violations) |
void |
setMaxPriority3Violations(int maxPriority3Violations) |
void |
setReportFormat(String reportFormat) |
getReportsDir, getSourceSets, getToolVersion, isIgnoreFailures, setIgnoreFailures, setReportsDir, setSourceSets, setToolVersion
public CodeNarcExtension(Project project)
@Incubating public TextResource getConfig()
configFile
property.public void setConfig(TextResource config)
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)