Share rules among projects with NDepend rule files (.ndrules)

NDepend stores your CQLinq queries and rules in the project file.

Rule Files can be created and shared among NDepend projects. This is useful to define company-level standard rules sets shared amongst projects, and get them applied by all teams.

ndepend rule file shared among several ndepend projects

As the source code is the design you might prefer storing your CQLinq queries and rules directly in your source code (C#, VB.NET...) as explained in the document Declare CQLinq rules in C# or VB.NET source code.