[Mono-bugs] [Bug 664004] New: Generated Xml is missing source file / line number for AvoidMethodWithUnusedGenericTypeRule and ConsiderAddingInterfaceRule
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 12 12:44:27 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=664004
https://bugzilla.novell.com/show_bug.cgi?id=664004#c0
Summary: Generated Xml is missing source file / line number for
AvoidMethodWithUnusedGenericTypeRule and
ConsiderAddingInterfaceRule
Classification: Mono
Product: Mono: Tools
Version: 2.8.x
Platform: 64bit
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Gendarme
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ethan_j_brown at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.15 (KHTML, like Gecko) Chrome/10.0.612.3 Safari/534.15
I am running a build of Gendarme 2.10 from Git code as of 1/12/2011. I am
running into a few scenarios where the generated Xml is missing the source file
and/or line numbers where it shouldn't. The types have been clearly
identified, so at the very least, the source file name should be present.
Reproducible: Always
Steps to Reproduce:
1.Run Gendarme on my codebase
2.
3.
Actual Results:
<rule Name="AvoidMethodWithUnusedGenericTypeRule"
Uri="http://www.mono-project.com/Gendarme.Rules.Design.Generic#AvoidMethodWithUnusedGenericTypeRule">
<problem>One or more generic type parameters are not used in the formal
parameter list.</problem>
<solution>This prevents the compiler from inferring types when the method
is used which results in hard to use API definitions.</solution>
<target Name="System.Collections.Generic.IEnumerable`1<TResult>
EPS.Data.Linq.Abstractions.IDataContext::ExecuteQuery(System.String,System.Object[])"
Assembly="EPS.Data, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<defect Severity="Medium" Confidence="High"
Location="System.Collections.Generic.IEnumerable`1<TResult>
EPS.Data.Linq.Abstractions.IDataContext::ExecuteQuery(System.String,System.Object[])"
Source="">Generic parameter 'TResult' is not used by the method
parameters.</defect>
</target>
<target Name="System.Data.Linq.Table`1<TEntity>
EPS.Data.Linq.Abstractions.IDataContext::GetTable()" Assembly="EPS.Data,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<defect Severity="Medium" Confidence="High"
Location="System.Data.Linq.Table`1<TEntity>
EPS.Data.Linq.Abstractions.IDataContext::GetTable()" Source="">Generic
parameter 'TEntity' is not used by the method parameters.</defect>
</target>
<target Name="System.Collections.Generic.IEnumerable`1<TResult>
EPS.Data.Linq.Abstractions.IDataContext::Translate(System.Data.Common.DbDataReader)"
Assembly="EPS.Data, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<defect Severity="Medium" Confidence="High"
Location="System.Collections.Generic.IEnumerable`1<TResult>
EPS.Data.Linq.Abstractions.IDataContext::Translate(System.Data.Common.DbDataReader)"
Source="">Generic parameter 'TResult' is not used by the method
parameters.</defect>
</target>
<rule Name="ConsiderAddingInterfaceRule"
Uri="http://www.mono-project.com/Gendarme.Rules.Design#ConsiderAddingInterfaceRule">
<problem>This type implements an interface's members, but does not
implement the interface.</problem>
<solution>If the semantics of the type's members are compatible with the
interface then inherit from the interface. Otherwise ignore the
defect.</solution>
<target
Name="EPS.Web.Authentication.Abstractions.IHttpContextInspectingAuthenticationFailureHandler`1"
Assembly="EPS.Web.Authentication, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null">
<defect Severity="Medium" Confidence="High"
Location="EPS.Web.Authentication.Abstractions.IHttpContextInspectingAuthenticator`1"
Source="">Type implements
'EPS.Web.Authentication.Abstractions.IHttpContextInspectingAuthenticator`1'
interface but does not declare it.</defect>
</target>
<target
Name="EPS.Web.Authentication.Abstractions.HttpContextInspectingAuthenticationFailureHandlerBase`1"
Assembly="EPS.Web.Authentication, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null">
<defect Severity="Medium" Confidence="High"
Location="EPS.Web.Authentication.Abstractions.IHttpContextInspectingAuthenticator`1"
Source="">Type implements
'EPS.Web.Authentication.Abstractions.IHttpContextInspectingAuthenticator`1'
interface but does not declare it.</defect>
</target>
</rule>
Expected Results:
Source attributes in the actual results should be replaced with source file
names.
--
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