Jump to content

NDepend

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Softdevusa (talk | contribs) at 17:36, 6 July 2011 (→‎Books that mention NDepend: added Scott Hanselman link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

NDepend
Developer(s)NDepend
Stable release
3.0 / February 24, 2010
Operating systemWindows
TypeSoftware quality
LicenseProprietary
Websitehttp://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.

Features

The main features of NDepend are:

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

See also

NDepend reviewed by the .NET community

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 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)