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 types | methodsAdded | methodsRemoved | Full Name |
ViewportLayoutBase | 1 method | 2 methods | devDept.Eyeshot.ViewportLayoutBase |
IEntity | 2 methods | 2 methods | devDept.Eyeshot.Entities.IEntity |
Entity | 1 method | 1 method | devDept.Eyeshot.Entities.Entity |
Sum: | 4 | 5 | |
Average: | 1.33 | 1.67 | |
Minimum: | 1 | 1 | |
Maximum: | 2 | 2 | |
Standard deviation: | 0.47 | 0.47 | |
Variance: | 0.22 | 0.22 | |