EyeshotUltimateDemo11 (analysis done 8 days ago, Tue 05 Dec 14:59 most recent)

WARNING: This code rule is violated. 3 types on 3184 tested match the condition.
// <Name>API Breaking Changes: Interfaces and Abstract Classes</Name>
warnif count > 0 from tNewer in Application.Types where 
 
(tNewer.IsInterface || tNewer.IsClass && tNewer.IsAbstract) && 
  
tNewer.IsPubliclyVisible && 
  
tNewer.IsPresentInBothBuilds()

let tOlder = tNewer.OlderVersion() where tOlder.IsPubliclyVisible

let methodsRemoved = tOlder.Methods.Where(m => m.IsAbstract && m.WasRemoved())
let methodsAdded = tNewer.Methods.Where(m => m.IsAbstract && m.WasAdded())

where methodsAdded.Count() > 0 || methodsRemoved.Count() > 0
select new { 
   
tNewer, 
   
methodsAdded, 
   
methodsRemoved,
 
//  Debt = 10.ToMinutes().ToDebt(),
  // Severity = Severity.High
}

//<Description>
// This rule is executed only if a *baseline for comparison* is defined (*diff mode*).
//
// This rule warns if a publicly visible interface or abstract class 
// has been changed and contains new abstract methods or 
// if some abstract methods have been removed.
//
// Clients code that implement such interface or derive from 
// such abstract class will be broken.
//</Description>

//<HowToFix>
// Make sure that the public contracts of interfaces and abstract classes
// that used to be presented to clients, remain stable now, and in the future.
//
// If a public contract must really be changed, you can tag 
// abstract methods that will be removed with *System.ObsoleteAttribute*  
// with a *workaround message* during a few public releases, until it gets 
// removed definitely.
//
// Issues of this rule have a severity equal to **High**
// because an API Breaking change can provoque significant
// friction with consummers of the API.
// The severity is not set to **Critical** because an interface 
// is not necessarily meant to be implemented by the consummer
// of the API.
//</HowToFix>
3 typesmethodsAddedmethodsRemovedFull Name
ViewportLayoutBase1 method2 methodsdevDept.Eyeshot.ViewportLayoutBase
IEntity2 methods2 methodsdevDept.Eyeshot.Entities.IEntity
Entity1 method1 methoddevDept.Eyeshot.Entities.Entity
Sum:45
Average:1.331.67
Minimum:11
Maximum:22
Standard deviation:0.470.47
Variance:0.220.22