NAntContrib
Help
Task Reference
<codestats> |
v0.85-rc2 |
[This is preliminary documentation and subject to change.]
Generates Statistics from source code.
Scans files in a fileset counting lines.| Attribute | Type | Description | Required |
|---|---|---|---|
| outputFile | string | If you want to save the output (in xml) specify the file name here | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Count all .cs files for a project
Verbose mode is suported and will print a summary to the Log
Output can be saved to an xml file
<codestats outputFile="test.xml" verbose="true">
<fileset>
<include name="**.cs" />
</fileset>
</codestats>