tags:

views:

10

answers:

1

Hi All,
I have some custom CQLs in NDepend Project and I want generate the results of these CQLs using NDepend.Console.exe. When I generate the report, I don't see any result of my custom CQLs in the report. I can export from Visual NDepend but I want to use NDepend.Console.exe from script. Ant.

A: 

First, transform your CQL query to a violated CQL Rules like for example, transforming

SELECT METHODS ORDER BY CyclomaticComplexity DESC

into

WARN IF Count > 0 IN SELECT METHODS ORDER BY CyclomaticComplexity DESC

Second, you need to set the following CQL query flag: Display list of items selected in report

alt text

Patrick Smacchia - NDepend dev