[Mono-bugs] [Bug 468842] New: New Rule: Avoid mixing string and characters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 23 08:23:11 EST 2009


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


           Summary: New Rule: Avoid mixing string and characters
    Classification: Mono
           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: ---


New rule should detect code like this and issue appropriate warning

string s = "a";
string x = s + 'x' + s; // Wrong
string y = s + "x" + s; // Correct

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