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

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


           Summary: UseCorrectSuffixRule should favor name of
                    XXXDictionary vs XXXCollection when a class implements
                    both IDictionary and ICollection to be consistent with
                    FxCop
    Classification: Mono
           Product: Mono: Tools
           Version: 2.10.x
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.18 Safari/534.16

A class that looks like this

public class CorrectCollectionAndDictionary<T, V> : IDictionary<T, V>,
ICollection<V>

generates a rule violation in Gendarme, where Gendarme expects the name to end
in 'Collection'

FxCop expects it to end in 'Dictionary'

Complete test case here:
https://github.com/Iristyle/mono-tools/commit/40bfb2260511cfe4171e9153c3c434fedd8a4d4a

Reproducible: Always

Steps to Reproduce:
1.Run included test
2.
3.
Actual Results:  
rule failure

Expected Results:  
rule success

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to