My experience of using NDepend
Recently, I was playing with NDepend.
For those who don't know what it is, NDepend is a static analysis tool for .NET managed code.
They say its "Swiss Army Knife" for .NET Developers" on their website, if you are a windows user, I confirm it!
For macOS and Linux users, currently, it doesn't support some features (most features).
My experience, as a developer:
definitely using tools like NDepend in teams will save time and resources.
Yeah, there are some similar tools like SonarQube but of course, they have their own pros and cons. For basic needs, all of them are really good.
NDepend has a nice feature called Dependency Visualization which you can see your project dependencies as a graph I like this one more than the others.
I use this feature to examine the dependencies between my assemblies, types and methods. This helps me to keep a view of whether coupling between types is out of hand, and also helps me spot refactoring opportunities.
领英推荐
Additionally, it has a fantastic query language, CQL, which lets you write custom queries. These can be simple things such as "show me all methods that call this method", to queries to highlight dead code, queries on cylcomatic complexity, coupling, etc, and much much more.
The main features of NDepend are:
Here is a short video about Dependency Visualization feature of NDepend: