Code Query Language 1.8 Specification

CQL 1.8

 

 

CQL 1.8 is supported by NDepend 2.9 and higher

http://www.NDepend.com

 

 

Copyright SMACCHIA.COM S.A.R.L 2006/2007/2008

All right reserved

 

 


 

Content

Content 2

Introduction. 5

CQL and VisualNDepend. 5

Learning the CQL language. 6

The CQL language and real-world needs. 7

Storing CQL queries and constraints in your C# or VB.NET source code. 7

Some examples of queries and constraints written in CQL. 8

Examples of code Quality constraints. 8

Examples of naming constraints. 10

Examples of design constraints. 10

Examples of encapsulation constraints. 10

Examples of queries on the graph of dependencies. 11

Examples of queries on the inheritance tree. 12

Examples of queries to get extremum... 13

CQL queries elements. 14

SELECT METHODS. 14

SELECT FIELDS. 14

SELECT TYPES. 14

SELECT NAMESPACES. 15

SELECT ASSEMBLIES. 15

WARN IF xxx IN: Query vs. Constraint 15

TOP xxx: Restrict the number of rows in the result 15

FROM / OUT OF xxx: Domain of search. 16

WHERE xxx: Define a set of conditions.