<codestats>

[This is preliminary documentation and subject to change.]

Generates statistics from source code.

Scans files in a fileset counting lines.

Parameters

AttributeTypeDescriptionRequired
appendbool Specifies whether the results should be appended to the output file. The default is false. False
buildnamestring An identifier to be able to track which build last updated the code stats file. False
outputfile The name of the file to save the output to (in XML). False
summarizebool If you only want to show summary stats for the whole fileset False
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Nested Elements:

<counts>

Set of line counters to enable.
<count>

Parameters

AttributeTypeDescriptionRequired
labelstring The label to apply to the results. True

Nested Elements:

<fileset>

The set of files to work on.

</fileset>

</count>

</counts>

Examples

Requirements

Assembly: NAnt.Contrib.Tasks (0.85.2344.0)