[Mono-bugs] [Bug 697552] New: AvoidLackOfCohesionOfMethodsRule counting Properties as Methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 1 15:04:06 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=697552

https://bugzilla.novell.com/show_bug.cgi?id=697552#c0


           Summary: AvoidLackOfCohesionOfMethodsRule counting Properties
                    as Methods
    Classification: Mono
           Product: Mono: Tools
           Version: unspecified
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: spouliot at novell.com
        ReportedBy: hanson.andrew at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=432554)
 --> (http://bugzilla.novell.com/attachment.cgi?id=432554)
A simple class with ten fields and no properties, doesn't show the rule as
broken

Description of Problem:


Steps to reproduce the problem:
1. Create a class with a good amount of fields (say 10) and properties to
expose them (simple getters and setters nothing fancy)
2. Leave the class empty of all functions/subs
3. Gendarme reports rule broken.
4. Remove all Property declarations (leaving the fields)
5. Gendarme does not report the rule as broken


Actual Results:
Rule is being reported as broken

Expected Results:
The class to be skipped as "uninteresting" as it doesn't have the minimum
amount of methods in it (which I believe is 2)

How often does this happen? 
Everytime

Additional Information:
I didn't know what to put up in the version box, but this was in gendarme
version 2.10 with .NET 2.0 compiled binaries

-- 
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