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


           Summary: False positive reported by UseCorrectSuffixRule for
                    generic collection
           Product: Mono: Tools
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: Other


Created an attachment (id=202864)
 --> (https://bugzilla.novell.com/attachment.cgi?id=202864)
Project to reproduce the problem

Overview Description: for a generic collection, the UseCorrectSuffixRule
reports an error even if the class is named as expected.

Steps to Reproduce:
Create a class library containing the following class (c.f. Attached file):
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace BugTest
{
  public class MyCollection<T> : Collection<T>
  {
  }
}

Actual Results:
Target: BugTest.MyCollection`1
Assembly: BugTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Severity: Medium  Confidence: High
Details: The class name does not end with 'Collection' suffix. Append it to the
type name.

Expected Results:
No error since the class seems to be correctly named

Possible fixes:
In the code, rule checks that the class name ends with the "Collection" suffix.
For a generic type (for instance MyCollection), the class name ends with
Collection'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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to