Eyeshot 12 (analysis done Today 14:28 most recent)

WARNING: This code rule is violated. 5 types on 3178 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,
   
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>
5 typesmethodsAddedmethodsRemovedSeverityFull Name
BarBase3 methods3 methodsHighdevDept.Eyeshot.BarBase
IIfcEntity2 methodsno methodHighdevDept.Eyeshot.Translators.IIfcEntity
Dimension1 method1 methodHighdevDept.Eyeshot.Entities.Dimension
Entity1 method1 methodHighdevDept.Eyeshot.Entities.Entity
ICurve7 methods7 methodsHighdevDept.Eyeshot.Entities.ICurve
Sum:1412-
Average:2.82.4-
Minimum:10-
Maximum:77-
Standard deviation:2.232.5-
Variance:4.966.24-