SubMain - CodeIt.Right The First Time!

/Community

A Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials Downloads
Welcome to SubMain Community Sign in | Join | Help

False positive on SharePoint attribute LinkDemand.

Last post 02-08-2010, 8:30 AM by Serge B.. 1 replies.
Sort Posts: Previous Next
  •  02-07-2010, 7:22 PM 1096

    False positive on SharePoint attribute LinkDemand.

    The following code appears to be generating a false positive. CIR is telling me to "Add 'Microsoft.SharePoint.Security.SharePointPermissionAttribute' attributes to base method. Fully qualifying the attribute as Microsoft.SharePoint.Security.SharePointPermissionAttribute does not effect the outcome of the CIR analysis. This code block will pass through FxCop as is...and if removed CIR will identify the missing attribute correctly as well. But when it is added...CIR ignores the attribute tag. Running version 1.8.09300. I am running with default settings...not sure if I need to make some configuration changes.

    <SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
    <SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=
    True)> _
    Protected Overrides Sub RenderToolPart(ByVal output As System.Web.UI.HtmlTextWriter)

    End Sub

  •  02-08-2010, 8:30 AM 1102 in reply to 1096

    Re: False positive on SharePoint attribute LinkDemand.

    Hi Bruce,

    Thank you for reporting this. We found the issue and fixed it.

    Thanks!

     


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |