[Mono-bugs] [Bug 666400] AvoidLackOfCohesionOfMethodRule should ignore WCF [DataContract] attributed classes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 23 11:24:11 EST 2011



--- Comment #3 from Sebastien Pouliot <spouliot at novell.com> 2011-01-23 16:24:10 UTC ---
So all methods, getters/setters, included are part of the rule logic which is
generally the case in (?all?) such algorithms. 

That's problematic since the algorithms generally promotes the "all methods use
all fields" as being the uber-cohesive goal since IMO it defeat the most common
use of properties.

Now there is, at least in C# 3, an easy way to distinguish "simple" and
"complex" properties by using "automatic properties" - just like your sample
does :-)

I'll update the rule to ignore them (getters/setters and backing fields are all
marked as compiler generated).

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list