class JavaNcssTask extends SourceTask
Task for calculating source code metrics by invoking the JavaNCSS tool.
| Type | Name and description |
|---|---|
boolean |
classMetricsShould metrics data be calculated for each class/interface? |
boolean |
functionMetricsShould metrics data be calculated for each method/function? |
FileCollection |
javancssClasspathClasspath containing the JavaNCSS classes used by the task. |
boolean |
ncssShould the total number of non commenting source statements in the input files be calculated? |
boolean |
packageMetricsShould metrics data be calculated for each package? |
java.lang.String |
toolVersionThe version of JavaNCSS to use. |
| Type | Name and description |
|---|---|
void |
addUpToDateCheck()Add checks of the reports to the task's up-to-date check of its outputs. |
java.io.File |
defaultPrimaryDestination()Get the default destination for the task's primary report. |
JavaNcssReports |
getReports()Get the reports produced by this task. |
FileTree |
getSource() |
java.lang.String |
getToolVersion() |
JavaNcssReports |
reports(groovy.lang.Closure pClosure)Configure this task's reports. |
void |
run()Calculate code metrics on the sources and produces the enabled report(s). |
void |
setupReports()Create the task's report container. |
Should metrics data be calculated for each class/interface? Default is true.
Should metrics data be calculated for each method/function? Default is true.
Classpath containing the JavaNCSS classes used by the task.
Should the total number of non commenting source statements in the input files be calculated? Default is true.
Should metrics data be calculated for each package? Default is true.
The version of JavaNCSS to use. Default is "33.54".
Add checks of the reports to the task's up-to-date check of its outputs.
Get the default destination for the task's primary report.
Get the reports produced by this task.
Configure this task's reports.
pClosure - A closure that configures the reports.Calculate code metrics on the sources and produces the enabled report(s).
Create the task's report container.