[Mono-bugs] [Bug 420394] New: New Rule: Avoid useless assignment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 26 10:49:31 EDT 2008


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


           Summary: New Rule: Avoid useless assignment
           Product: Mono: Tools
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


It would be nice to have a rule which checks for duplicate/useless assignment

One example is:

class C
{
    int i;

    public C ()
    {
        i = 9;
        i = 1;
    }
}


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


More information about the mono-bugs mailing list