Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
bdb3ece7
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
bdb3ece7
编写于
2月 18, 2020
作者:
J
Jason Malinowski
提交者:
GitHub
2月 18, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #41586 from jasonmalinowski/delete-suppressions-for-ca3053
Delete suppressions of CA3053
上级
0b2e84a5
4ead1781
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
0 addition
and
36 deletion
+0
-36
src/Compilers/Core/Portable/Desktop/AssemblyPortabilityPolicy.cs
...pilers/Core/Portable/Desktop/AssemblyPortabilityPolicy.cs
+0
-6
src/Compilers/Core/Portable/DocumentationComments/DocumentationCommentIncludeCache.cs
...DocumentationComments/DocumentationCommentIncludeCache.cs
+0
-6
src/Compilers/Core/Portable/DocumentationComments/XmlDocumentationCommentTextReader.cs
...ocumentationComments/XmlDocumentationCommentTextReader.cs
+0
-6
src/Compilers/Core/Portable/RuleSet/RuleSetProcessor.cs
src/Compilers/Core/Portable/RuleSet/RuleSetProcessor.cs
+0
-6
src/Workspaces/Core/Portable/Shared/Utilities/XmlFragmentParser.cs
...paces/Core/Portable/Shared/Utilities/XmlFragmentParser.cs
+0
-6
src/Workspaces/Core/Portable/Utilities/Documentation/XmlDocumentationProvider.cs
...table/Utilities/Documentation/XmlDocumentationProvider.cs
+0
-6
未找到文件。
src/Compilers/Core/Portable/Desktop/AssemblyPortabilityPolicy.cs
浏览文件 @
bdb3ece7
...
...
@@ -54,12 +54,6 @@ private static bool ReadToChild(XmlReader reader, int depth, string elementName,
DtdProcessing
=
DtdProcessing
.
Prohibit
,
};
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
internal
static
AssemblyPortabilityPolicy
LoadFromXml
(
Stream
input
)
{
// Note: Unlike Fusion XML reader the XmlReader doesn't allow whitespace in front of <?xml version=""1.0"" encoding=""utf-8"" ?>
...
...
src/Compilers/Core/Portable/DocumentationComments/DocumentationCommentIncludeCache.cs
浏览文件 @
bdb3ece7
...
...
@@ -44,12 +44,6 @@ public XDocument GetOrMakeDocument(string resolvedPath)
/// <exception cref="IOException"></exception>
/// <exception cref="XmlException"></exception>
/// <exception cref="InvalidOperationException"></exception>
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
private
static
KeyValuePair
<
string
,
XDocument
>
MakeValue
(
XmlReferenceResolver
resolver
,
string
resolvedPath
)
{
CacheMissCount
++;
...
...
src/Compilers/Core/Portable/DocumentationComments/XmlDocumentationCommentTextReader.cs
浏览文件 @
bdb3ece7
...
...
@@ -32,12 +32,6 @@ public static XmlException ParseAndGetException(string text)
private
static
readonly
XmlReaderSettings
s_xmlSettings
=
new
XmlReaderSettings
{
DtdProcessing
=
DtdProcessing
.
Prohibit
};
// internal for testing
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
internal
XmlException
ParseInternal
(
string
text
)
{
_textReader
.
SetText
(
text
);
...
...
src/Compilers/Core/Portable/RuleSet/RuleSetProcessor.cs
浏览文件 @
bdb3ece7
...
...
@@ -54,12 +54,6 @@ internal class RuleSetProcessor
/// Creates and loads the rule set from a file
/// </summary>
/// <param name="filePath">The file path to load the rule set</param>
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
public
static
RuleSet
LoadFromFile
(
string
filePath
)
{
// First read the file without doing any validation
...
...
src/Workspaces/Core/Portable/Shared/Utilities/XmlFragmentParser.cs
浏览文件 @
bdb3ece7
...
...
@@ -52,12 +52,6 @@ public static void ParseFragment<TArg>(string xmlFragment, Action<XmlReader, TAr
DtdProcessing
=
DtdProcessing
.
Prohibit
,
};
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
private
void
ParseInternal
<
TArg
>(
string
text
,
Action
<
XmlReader
,
TArg
>
callback
,
TArg
arg
)
{
_textReader
.
SetText
(
text
);
...
...
src/Workspaces/Core/Portable/Utilities/Documentation/XmlDocumentationProvider.cs
浏览文件 @
bdb3ece7
...
...
@@ -56,12 +56,6 @@ public static XmlDocumentationProvider CreateFromFile(string xmlDocCommentFilePa
return
new
FileBasedXmlDocumentationProvider
(
xmlDocCommentFilePath
);
}
[
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"Microsoft.FxCop.Rules.Security.Xml.SecurityXmlRules"
,
"CA3053:UseXmlSecureResolver"
,
MessageId
=
"System.Xml.XmlReader.Create"
,
Justification
=
@"For the call to XmlReader.Create() below, CA3053 recommends setting the
XmlReaderSettings.XmlResolver property to either null or an instance of XmlSecureResolver.
However, the said XmlResolver property no longer exists in .NET portable framework (i.e. core framework) which means there is no way to set it.
So we suppress this error until the reporting for CA3053 has been updated to account for .NET portable framework."
)]
private
XDocument
GetXDocument
(
CancellationToken
cancellationToken
)
{
using
var
stream
=
GetSourceStream
(
cancellationToken
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录