Types where code was changed

Code Query Code Diff Summary

Runs only in diff mode (baseline defined). Lists types whose code changed since the baseline.

To visualize changes, right-click a matched type and select:

- Compare older and newer versions of source file

- Compare older and newer versions decompiled with Reflector

CQLinq source

This code query is written in CQLinq, C# LINQ over the NDepend code model. It ships with every new NDepend project: you can read it, adapt it, or use it as a starting point for your own custom rules.

// <Name>Types where code was changed</Name>

from t in Application.Types where t.CodeWasChanged() 
//select new { t, t.NbLinesOfCode }
select new { 
   t, 
   t.NbLinesOfCode, 
   oldNbLinesOfCode = t.OlderVersion().NbLinesOfCode ,
   delta = (int?) t.NbLinesOfCode - t.OlderVersion().NbLinesOfCode 
} 
//<Desc>
// Runs only in *diff mode* (baseline defined). Lists *types* whose code
// changed since the *baseline*.
//
// To visualize changes, right-click a matched type and select:
//
// - Compare older and newer versions of source file
//
// - Compare older and newer versions decompiled with Reflector
//</Desc>

Code Diff Summary: all 25 items