views:

36

answers:

0

Does anyone know how I could find magic numbers in the source code using the CQL queries in NDepend? This is the same problem as this question, but I don't want to use regex if possible.

So I want to find all statements like

Int32 someValue = 23;
Double anotherValue = 1;

but not

for (int i = 0; i < array.length; i++)