Permalink
Browse files

Adding FxCop exclusion for CA3053:UseXmlSecureResolver in code that

compiles under .Net portable framework.
  • Loading branch information...
robward-ms authored and AlanWong-MS committed Apr 6, 2017
1 parent bb1a231 commit 072f6f7c9bc4c739e553f7fa0996618c621a6589
@@ -651,6 +651,9 @@ private void ParseReferenceElement()
this.edmReferences.Add(result);
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
private void ParseSchemaElement()
{
Debug.Assert(this.reader.LocalName == CsdlConstants.Element_Schema, "Must call ParseCsdlSchemaElement on Schema Element");
@@ -43,6 +43,9 @@ internal XmlAttributeInfo GetRequiredAttribute(XmlElementInfo element, string at
return attr;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
protected override XmlReader InitializeReader(XmlReader reader)
{
XmlReaderSettings readerSettings = new XmlReaderSettings
@@ -73,6 +73,9 @@ internal static bool PropertySetsAreEquivalent(IEnumerable<IEdmStructuralPropert
return true;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
internal static bool ValidateValueCanBeWrittenAsXmlElementAnnotation(IEdmValue value, string annotationNamespace, string annotationName, out EdmError error)
{
IEdmStringValue edmStringValue = value as IEdmStringValue;
@@ -47,6 +47,9 @@ public static class AlternateKeysVocabularyModel
/// <summary>
/// Parse Alternate Keys Vocabulary Model from AlternateKeysVocabularies.xml
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
static AlternateKeysVocabularyModel()
{
Assembly assembly = typeof(AlternateKeysVocabularyModel).GetAssembly();
@@ -32,6 +32,9 @@ internal class CapabilitiesVocabularyModel
/// <summary>
/// Parse Capabilities Vocabulary Model from CapabilitiesVocabularies.xml
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
static CapabilitiesVocabularyModel()
{
Assembly assembly = typeof(CapabilitiesVocabularyModel).GetAssembly();
@@ -122,6 +122,9 @@ public static class CoreVocabularyModel
/// <summary>
/// Parse Core Vocabulary Model from CoreVocabularies.xml
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules", "CA3053:UseXmlSecureResolver",
MessageId = "System.Xml.XmlReader.Create",
Justification = "The XmlResolver property no longer exists in .NET portable framework.")]
static CoreVocabularyModel()
{
IsInitializing = true;

0 comments on commit 072f6f7

Please sign in to comment.