[Mono-bugs] [Bug 372250] New: False positive reported by UseCorrectSuffixRule for generic collection
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 19 04:45:40 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: joelcavarroc at hotmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list