Questions tagged [cqlinq]

CQLinq is a LINQ-like query language used by NDepend to reflectively analyze .NET source code using the NDepend tool.

CQLinq is a LINQ-like query language used by NDepend to reflectively analyze .NET source code using the NDepend tool.

References

52 questions
1
vote
1 answer

NDepend small issue checking obsolete method name

I have a little issue when doing the CQLinq query. I'm trying to get the method that is obsolete with specified fullnames, which means that I want to specify specifically what methods are obsolete by FullName. The result should pop out 5 matches…
Khiem-Kim Ho Xuan
  • 1,301
  • 1
  • 22
  • 45
1
vote
1 answer

NDepend: Get average LOC per method

Let's say I a have specific method set in my solution. How can i get an average number of code lines per method in the method set? Those numbers are usually shown in the statistic section of each NDepend report (like Sum, Average, Minimum, etc) but…
Sasha Reminnyi
  • 3,442
  • 2
  • 23
  • 27
1
vote
1 answer

NDepend - how to extract comments from code?

Is it possible to somehow use CqLinq to extract for each method its comments header? i.e. ....
Alpha01
  • 838
  • 6
  • 13
0
votes
1 answer

NDpend CQLinq to signal code rule

I'm a new customer of NDpend, so please excuse me my question is stupid...I wish to have a rule that shows me when I've got a constructor has a particular line of code. Consider that example public StatusViewModel { this.userService =…
advapi
  • 3,661
  • 4
  • 38
  • 73
0
votes
2 answers

NDepend searching for faster collection opportunities

I have a huge legacy code base and I would like to optimize it, make it faster. For this reason I thought about looking up opportunities where I can replace list and arrays with HashSets and Dictionaries. There is the following NDepend query under…
Laszlo
  • 302
  • 1
  • 10
0
votes
0 answers

ndepend - CQLinq Find types used as type params to 3rd party generic method

I'm messing around with CQLinq and was trying to write a query to find the types in my project that are used as generic type params to a 3rd party generic method. To be more specific, we use a 3rd party library called AutoMapper which has a static…
Roly
  • 1,516
  • 1
  • 15
  • 26
0
votes
1 answer

Regular expression and Obsolete attribute extraction in NDepend

I've tried to search on the NDepend documentation if there is any possible way to do a regex on Obsolete Attributes? And is there a way to get the Obsolete attribute in NDepend at all? Any ideas or example of code on how to make a small Linq query…
Khiem-Kim Ho Xuan
  • 1,301
  • 1
  • 22
  • 45
1 2 3
4