Find Code Hotspots with ndepend

One of the constant battles in software development is predicting where problems are in your code. There are lots of ways to cut up your codebase in order to predict where problems are likely to occur; I have been experimenting with some reports over check-in history in Visual Studio Team Services to find files withContinue reading “Find Code Hotspots with ndepend”

Adjusting Your NDepend Rules with CQLinq

Having picked up the basics of the new CQLinq definitions in NDepend 4, I decided to start customising some rules to wipe out some false positives being reported in the code base. I think this will be a common scenario, so I’m going to share the exact change, but you’ll find this useful if youContinue reading “Adjusting Your NDepend Rules with CQLinq”

Using NDepend to Get a Grasp of Your Code

Whenever I land in a new team and get given a big chunk of source code to familiarise myself with, I like to crack open NDepend and run a full report. In particular, a quick browse through the Dependency Graph and a brief glance at the Abstractness Verses Instability Graph can tell you a lotContinue reading “Using NDepend to Get a Grasp of Your Code”

Improving Your Code with NDepend and CQL

I have been talking a fair bit recently about code quality tools such as Resharper and NDepend. In this article, I will explain how to use one of the features of NDepend to improve your code quality. On of my favourite features of NDepend is the suite of “code query language” tests, which run againstContinue reading “Improving Your Code with NDepend and CQL”

NDepend for Beginners

NDepend is a code-quality tool that integrates with Visual Studio (2008 and 2010… and probably older versions too if you happen work in a museum). Within about 10 minutes of installing NDepend, I had already created a really handy component diagram that pointed out that one of my name-spaces was wrong. I haven’t even properlyContinue reading “NDepend for Beginners”