Skip to content
hibri edited this page Aug 12, 2010 · 8 revisions

The NDependTask allows you to run static code analysis using NDepend’s console application, NDepend.Console.exe.
See !http://www.ndepend.com/NDependConsole.aspx for a description on how to use NDepend.Console.exe

How to use the NDependTask

An example of how you would use the NDependTask


ndepend :analyse do |nd|
    nd.path_to_command = "C:\\tools\\Ndepend-v2.12/NDepend.Console.exe"
    nd.project_file = "src/MyProject/Ndependproject.xml"
    nd.parameters << "/Silent"
end

h2.NDependTask configuration and execution options

h3.path_to_command (required)
Set the location to the NDepend.Console.exe. This can be an absolute or relative path.

h3.project_file (required)
Set the location to the NDepend project file. This can be an absolute or relative path.

h3.parameters (optional)
Other parameters you may want to pass to NDepend.Console.exe.
Please see !http://www.ndepend.com/NDependConsole.aspx for other optional paramaters.

YAML configuration

The NDependTask supports configuration via an external YAML file, including auto-configuration with a “ndepend.yml” file. For more information, see the yamlconfig page.

Clone this wiki locally