| Option/Use |
|
Description |
| stoponerror="false" |
 |
Prevents ant task from completing if the metric threshold exceeds your input and the metric has a severity of error. Defaults to false. |
| errorsonly="false" |
 |
Reports only methods that exceed your metric thresholds defined with severity of error. Defaults to false. |
| includejunit="false" |
 |
Include JUnit classes in metrics analysis. Default is to skip all JUnit test classes. |
| source="1.5" |
 |
Java version to use when analyzing source code. Valid values are Java 1.1 to Java7. Default is Java 1.4. |
| dir="/Users/anonymous/workspace/CarRental/src" |
 |
Directory where the source code can be found. |
| html="true" |
 |
Creates a HTML report called report.html.Default is false. |
| log="./log.out" |
 |
Outputs all comet information to the specified log file. |
| license="/Users/anonymous/codign.lic" |
 |
Specifies the location of the license file. Comet requires a valid license file, available here. |
| classpathref="carrentalpathid" |
 |
Classpath ID, defined in a separate <> target |
| include name="**/*.java" |
 |
Specifies the type of file to be analyzed within the dir option |
| exclude="**/Test*.java" |
 |
Specifies the files to be ignored during analysis. |
| thresholdname="parameters" value="4" severity="error" |
 |
Identifies the metric, threshold and severity level. For this example, any method with greater than 4 parameters will be flagged as an error. If stoponerror="true", the build will stop. Valid metrics are parameters (parameters), exceptions (exceptions), lines of code (loc), cyclomatic complexity (cc), paths (paths), static invocations (staticinvocations), anonymous classes (anonclasses). |