File: GlobalSuppressions4.cs
Project: ndp\fx\src\xsp\system\Web\System.Web.csproj (System.Web)
using System.Diagnostics.CodeAnalysis;
 
[module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "System.Web.resources", MessageId = "aspnet", Justification = @"By design")]
[module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "System.Web.resources", MessageId = "jquery", Justification = @"By design")]
[module: SuppressMessage("Microsoft.Naming", "CA1701:ResourceStringCompoundWordsShouldBeCasedCorrectly", Scope = "resource", Target = "System.Web.resources", MessageId = "whitespace", Justification = @"whitespace is appropriate to indicate space\tab etc.")]
 
[module: SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Scope = "member", Target = "System.Web.UI.ImageClickEventArgs.#X", Justification = @"Breaking change")]
[module: SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Scope = "member", Target = "System.Web.UI.ImageClickEventArgs.#XRaw", Justification = @"Though not a breaking change, better to keep it consistent with X.")]
[module: SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Scope = "member", Target = "System.Web.UI.ImageClickEventArgs.#Y", Justification = @"Breaking change")]
[module: SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Scope = "member", Target = "System.Web.UI.ImageClickEventArgs.#YRaw", Justification = @"Though not a breaking change, better to keep it consistent with Y.")]
 
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.Control.#BeginRenderTracing(System.IO.TextWriter,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.Control.#EndRenderTracing(System.IO.TextWriter,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.Control.#SetTraceData(System.Object,System.Object,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.RenderTraceListener.#BeginRendering(System.IO.TextWriter,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.RenderTraceListener.#EndRendering(System.IO.TextWriter,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
[module: SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", Scope = "member", Target = "System.Web.UI.RenderTraceListener.#SetTraceData(System.Object,System.Object,System.Object)", MessageId = "object", Justification = @"By design - okay.")]
 
#region CA2116 False Positives
// CA2116 is firing false positives due to DevDiv #342582 (http://vstfdevdiv:8080/DevDiv2/web/wi.aspx?id=342582).
// We should remove these suppressions when that bug is fixed.
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.Configuration.RegexWorker.#.cctor()", Justification = "False positive.")]
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.Handlers.AssemblyResourceLoader.#.cctor()", Justification = "False positive.")]
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.UI.BaseParser.#.cctor()", Justification = "False positive.")]
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.UI.ControlBuilder.#.cctor()", Justification = "False positive.")]
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.UI.Page.#ExportWebPart(System.String)", Justification = "False positive.")]
[module: SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Scope = "member", Target = "System.Web.UI.SimpleWebHandlerParser.#.cctor()", Justification = "False positive.")]
#endregion
 
#region CA5600 (SDL.AntiXSS) Is too big of a breaking change.
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope = "member", Target = "System.Web.ErrorFormatter#WriteFusionLogWithAssert(System.Text.StringBuilder)", Justification = "Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.FormatterWithFileInfo#GetSourceFileLines(System.String,System.Text.Encoding,System.String,System.Int32)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpResponse#Redirect(System.String,System.Boolean,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpResponse#WriteOneExceptionStack(System.Exception)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpServerUtility#HtmlEncode(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpServerUtility#HtmlEncode(System.String,System.IO.TextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpServerUtilityWrapper#HtmlEncode(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpServerUtilityWrapper#HtmlEncode(System.String,System.IO.TextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.HttpUtility#HtmlEncode(System.Object)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.PageForbiddenErrorFormatter#.ctor(System.String,System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.PageNotFoundErrorFormatter#.ctor(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Handlers.AssemblyResourceLoader#GetWebResourceUrlInternal(System.Reflection.Assembly,System.String,System.Boolean,System.Boolean,System.Web.UI.IScriptManager,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Handlers.TraceHandler#CreateControlTable(System.Data.DataTable)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Handlers.TraceHandler#CreateDetailsTable(System.Data.DataTable)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Handlers.TraceHandler#CreateTable(System.Data.DataTable,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Handlers.TraceHandler#ShowRequests(System.Collections.IList)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Management.MailWebEventProvider#GenerateSubject(System.Int32,System.Int32,System.Web.Management.WebBaseEventCollection,System.Int32)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Management.TemplatedMailWebEventProvider#GenerateMessageBody(System.Net.Mail.MailMessage,System.Web.Management.WebBaseEventCollection,System.DateTime,System.Int32,System.Int32,System.Int32,System.Web.Management.EventNotificationType,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean&)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.ClientScriptManager#RegisterClientScriptInclude(System.Type,System.String,System.String,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.ClientScriptManager#RenderHiddenFields(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlTextWriter#AddStyleAttribute(System.String,System.String,System.Web.UI.HtmlTextWriterStyle)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlTextWriter#EncodeAttributeValue(System.String,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlTextWriter#WriteEncodedText(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlTextWriter#WriteHtmlAttributeEncode(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.Page#PrepareCallback(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.Page#RenderCallback()", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.Adapters.PageAdapter#RenderBeginHyperlink(System.Web.UI.HtmlTextWriter,System.String,System.Boolean,System.String,System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlControls.HtmlForm#Render(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.HtmlControls.HtmlSelect#RenderChildren(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.BoundField#FormatDataValue(System.Object,System.Boolean)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.BoundField#InitializeCell(System.Web.UI.WebControls.DataControlFieldCell,System.Web.UI.WebControls.DataControlCellType,System.Web.UI.WebControls.DataControlRowState,System.Int32)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.BulletedList#RenderBulletText(System.Web.UI.WebControls.ListItem,System.Int32,System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.ListControl#RenderContents(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.Literal#Render(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.LoginName#RenderContents(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.LoginUtil#CreateMailMessage(System.String,System.String,System.String,System.Web.UI.WebControls.MailDefinition,System.String,System.Web.UI.Control)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.ModelErrorMessage#OnPreRender(System.EventArgs)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.PasswordRecovery#SetQuestionCommonChildProperties()", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.SiteMapPath#InitializeItem(System.Web.UI.WebControls.SiteMapNodeItem)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.TextBox#Render(System.Web.UI.HtmlTextWriter)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.Adapters.MenuAdapter#RenderExpand(System.Web.UI.HtmlTextWriter,System.Web.UI.WebControls.MenuItem,System.Web.UI.WebControls.Menu)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.Adapters.MenuAdapter#RenderItem(System.Web.UI.HtmlTextWriter,System.Web.UI.WebControls.MenuItem,System.Int32)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.UI.WebControls.WebParts.RowToParametersTransformer+RowToParametersConfigurationWizard#CreateWizardSteps()", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
[module: SuppressMessage("SDL.AntiXSS", "CA5600:PlatformEncodingShouldNotBeUsed", Scope="member", Target="System.Web.Util.AspCompatApplicationStep#System.Web.Util.IManagedContext.Server_HTMLEncode(System.String)", Justification="Enormous breaking change to use AntiXss by default. <httpRuntime encoderType=\"AntiXssEncoder\"> is an option.")]
#endregion