c:\temp C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF
Application Metrics
.NET Assemblies Metrics
Treemap Metric View
.NET Assemblies Abstractness vs. Instability
.NET Assemblies Dependencies
.NET Assemblies Dependency Graph
.NET Assemblies Build Order
Analysis Log
CQL Rules Violated
Types Metrics
Types Dependencies
Discard generated and designer Methods from JustMyCode // --- Make sure to make this query richer to discard generated methods from NDepend rules results --- notmycode // // First define source files paths to discard // from a in Application.Assemblies where a.SourceFileDeclAvailable let asmSourceFilesPaths = a.SourceDecls.Select(s => s.SourceFile.FilePath) let sourceFilesPathsToDiscard = ( from filePath in asmSourceFilesPaths let filePathLower= filePath.ToString().ToLower() where filePathLower.EndsWithAny( ".g.cs", // Popular pattern to name generated files. ".g.vb", ".xaml", // notmycode WPF xaml code ".designer.cs", // notmycode C# Windows Forms designer code ".designer.vb") // notmycode VB.NET Windows Forms designer code || // notmycode methods in source files in a directory containing generated filePathLower.Contains("generated") select filePath ).ToHashSet() // // Second: discard methods in sourceFilesPathsToDiscard // from m in a.ChildMethods where (m.SourceFileDeclAvailable && sourceFilesPathsToDiscard.Contains(m.SourceDecls.First().SourceFile.FilePath)) || // Generated methods might be tagged with this attribute m.HasAttribute ("System.CodeDom.Compiler.GeneratedCodeAttribute".AllowNoMatch()) select new { m, m.NbLinesOfCode }]]> Discard generated Fields from JustMyCode // --- Make sure to make this query richer to discard generated fields from NDepend rules results --- notmycode from f in Application.Fields where f.HasAttribute ("System.CodeDom.Compiler.GeneratedCodeAttribute".AllowNoMatch()) || // Eliminate "components" generated in Windows Form Conrol context f.Name == "components" && f.ParentType.DeriveFrom("System.Windows.Forms.Control".AllowNoMatch()) select f]]>