NDepend

From Wikipedia, the free encyclopedia
Jump to: navigation, search
NDepend
Developer(s) NDepend
Stable release 3.0 / February 24, 2010
Operating system Windows
Type Software quality
License Proprietary
Website http://ndepend.com

NDepend is a static analysis tool for .NET managed code. This tool supports a large number of code metrics, allows for visualization of dependencies using directed graphs and dependency matrix. The tools also performs code base snapshots comparison, and validation of architectural and quality rules. User-defined rules can be written using a dedicated language called "Code Query Language" (CQL). This language is very similar to SQL, hence users can query the code base the same way that one would query a relational database. The tool also comes with a large number of predefined code quality rules. Rules can be checked automatically during continuous integration.

Contents

[edit] Features

The main features of NDepend are:

[edit] CQL

CQL (Code Query Language), is one of the innovations of NDepend. It is an SQL inspired query language: .NET assemblies can be queried in a very similar way that relational database are queried. For example:

- Which public methods have more than 30 lines of code?

SELECT METHODS  WHERE NbLinesOfCode >  30  AND IsPublic

- Which classes implement System.IDisposable?

SELECT TYPES WHERE IsClass AND Implements "System.IDisposable"

- Which methods have been modified since the last release?

SELECT METHODS WHERE CodeWasChanged

[edit] See also

[edit] External links

[edit] NDepend reviewed by the .NET community

[edit] Books that mention NDepend

  • Marcin Kawalerowicz and Craig Berntson. Continuous Integration in .NET (2010)
  • James Avery and Jim Holmes. Windows developer power tools‎ (2006)
  • Patrick Cauldwell and Scott Hanselman. Code Leader: Using People, Tools, and Processes to Build Successful Software‎ (2008)
  • Yogesh Shetty and Samir Jayaswal. Practical .NET for financial markets‎ (2006)
  • Paul Duvall. Continuous Integration‎ (2007)
  • Rick Leinecker and Vanessa L. Williams. Visual Studio 2008 All-In-One Desk Reference For Dummies (2008)
  • Patrick Smacchia. Practical .Net 2 and C# 2: Harness the Platform, the Language, the Framework‎ (2006)
Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages