Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
5f0e8db3
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,发现更多精彩内容 >>
提交
5f0e8db3
编写于
7月 30, 2019
作者:
J
jnm2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed trailing whitespace in generated GlobalSuppressions.cs
上级
00d6cc9f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
80 addition
and
80 deletion
+80
-80
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTest_FixAllTests.cs
...st/Diagnostics/Suppression/SuppressionTest_FixAllTests.cs
+10
-10
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
...es/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
+38
-38
src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb
...sualBasicTest/Diagnostics/Suppression/SuppressionTests.vb
+30
-30
src/Features/Core/Portable/CodeFixes/Suppression/AbstractSuppressionCodeFixProvider.cs
...deFixes/Suppression/AbstractSuppressionCodeFixProvider.cs
+2
-2
未找到文件。
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTest_FixAllTests.cs
浏览文件 @
5f0e8db3
...
...
@@ -368,9 +368,9 @@ class Class2
</Workspace>"
;
var
addedGlobalSuppressions
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:Class1.Method~System.Int32"")]
...
...
@@ -471,9 +471,9 @@ class Class2
</Workspace>"
;
var
addedGlobalSuppressions
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:Class1.Method~System.Int32"")]
...
...
@@ -575,9 +575,9 @@ class Class2
</Workspace>"
;
var
addedGlobalSuppressionsProject1
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:Class1.Method~System.Int32"")]
...
...
@@ -588,9 +588,9 @@ class Class2
"
.
Replace
(
"<"
,
"<"
).
Replace
(
">"
,
">"
);
var
addedGlobalSuppressionsProject2
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:Class1.Method~System.Int32"")]
...
...
@@ -698,9 +698,9 @@ class Class2
</Workspace>"
;
var
addedGlobalSuppressions
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""NoLocationDiagnostic"", ""NoLocationDiagnostic:NoLocationDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"")]"
...
...
src/EditorFeatures/CSharpTest/Diagnostics/Suppression/SuppressionTests.cs
浏览文件 @
5f0e8db3
...
...
@@ -853,9 +853,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""type"", Target = ""~T:Class"")]
...
...
@@ -896,9 +896,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""namespace"", Target = ""~N:N"")]
...
...
@@ -945,9 +945,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""type"", Target = ""~T:N1.N2.Class"")]
...
...
@@ -997,9 +997,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""type"", Target = ""~T:N.Generic`1.Class"")]
...
...
@@ -1049,9 +1049,9 @@ class Class
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:N.Generic`1.Class.Method~System.Int32"")]
...
...
@@ -1106,9 +1106,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:N.Generic`1.Class.Method(System.Int32,System.Char@)~System.Int32"")]
...
...
@@ -1166,9 +1166,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:N.Generic`1.Class.Method~System.Int32"")]
...
...
@@ -1197,9 +1197,9 @@ class Class
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~M:N.Generic`1.Class.Method``1(``0)~System.Int32"")]
...
...
@@ -1249,9 +1249,9 @@ class Class
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~P:N.Generic.Class.Property"")]
...
...
@@ -1292,9 +1292,9 @@ class Class
[|int field = 0;|]
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~F:Class.field"")]
...
...
@@ -1334,9 +1334,9 @@ enum E
|]
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""type"", Target = ""~T:E"")]
...
...
@@ -1371,9 +1371,9 @@ class Class
int [|field = 0|], field2 = 1;
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~F:Class.field"")]
...
...
@@ -1419,9 +1419,9 @@ class Class
}|]
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""member"", Target = ""~E:Class.SampleEvent"")]
...
...
@@ -1469,9 +1469,9 @@ class Class { }
]]>
</Document>
<Document FilePath=""GlobalSuppressions.cs""><![CDATA[
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""<Pending>"", Scope = ""type"", Target = ""Class"")]
...
...
@@ -1481,9 +1481,9 @@ class Class { }
</Workspace>"
;
var
expectedText
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""<Pending>"", Scope = ""type"", Target = ""Class"")]
...
...
@@ -1518,9 +1518,9 @@ class Class { }
</Workspace>"
;
var
expectedText
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"", Scope = ""type"", Target = ""~T:Class2"")]
...
...
@@ -1551,9 +1551,9 @@ class Class { }
]]>
</Document>
<Document FilePath=""GlobalSuppressions2.cs""><![CDATA[
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""<Pending>"", Scope = ""type"", Target = ""Class"")]
...
...
@@ -1563,9 +1563,9 @@ class Class { }
</Workspace>"
;
var
expectedText
=
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""InfoDiagnostic"", ""InfoDiagnostic:InfoDiagnostic"", Justification = ""<Pending>"", Scope = ""type"", Target = ""Class"")]
...
...
@@ -1969,9 +1969,9 @@ int Method()
}
}"
,
$@"
// This file is used by Code Analysis to maintain SuppressMessage
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(""NoLocationDiagnostic"", ""NoLocationDiagnostic:NoLocationDiagnostic"", Justification = ""
{
FeaturesResources
.
Pending
}
"")]
...
...
src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb
浏览文件 @
5f0e8db3
...
...
@@ -981,9 +981,9 @@ Imports System
End
Sub
End
Class
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
type
""
, Target:=
""
~T:Class1
""
)>
...
...
@@ -1019,9 +1019,9 @@ Imports System
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
namespace
""
, Target:=
""
~N:N
""
)>
...
...
@@ -1061,9 +1061,9 @@ Namespace N1
End
Namespace
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
type
""
, Target:=
""
~T:N1.N2.Class1
""
)>
...
...
@@ -1105,9 +1105,9 @@ Namespace N
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
type
""
, Target:=
""
~T:N.Generic`1.Class1
""
)>
...
...
@@ -1149,9 +1149,9 @@ Namespace N
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~M:N.Generic`1.Class1.Method
""
)>
...
...
@@ -1197,9 +1197,9 @@ Namespace N
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~M:N.Generic`1.Class1.Method(System.Int32,System.Int32@)
""
)>
...
...
@@ -1249,9 +1249,9 @@ Namespace N
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~M:N.Generic`1.Class1.Method``1(``0,System.Int32@)
""
)>
...
...
@@ -1299,9 +1299,9 @@ Namespace N
End
Class
End
Namespace
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~P:N.Generic.C.P
""
)>
...
...
@@ -1339,9 +1339,9 @@ Class C
[|
Private
ReadOnly
F
As
Integer
|]
End
Class
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~F:C.F
""
)>
...
...
@@ -1395,9 +1395,9 @@ Class C
End
Event
End
Class
]]
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
member
""
, Target:=
""
~E:C.SampleEvent
""
)>
...
...
@@ -1457,9 +1457,9 @@ End Class
End
Class
]]
>
</
Document
>
<
Document
FilePath
=
"GlobalSuppressions.vb"
><
!
[
CDATA
[
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<
Assembly
:
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"InfoDiagnostic"
,
"InfoDiagnostic:InfoDiagnostic"
,
Justification
:
=
"<Pending>"
,
Scope
:
=
"type"
,
Target
:
=
"Class1"
)
>
...
...
@@ -1469,9 +1469,9 @@ End Class]]>
</
Workspace
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
<Pending>
""
, Scope:=
""
type
""
, Target:=
""
Class1
""
)>
...
...
@@ -1506,9 +1506,9 @@ End Class
</
Workspace
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
{FeaturesResources.Pending}
""
, Scope:=
""
type
""
, Target:=
""
~T:Class2
""
)>
...
...
@@ -1539,9 +1539,9 @@ End Class
]]
>
</
Document
>
<
Document
FilePath
=
"GlobalSuppressions2.vb"
><
!
[
CDATA
[
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<
Assembly
:
Diagnostics
.
CodeAnalysis
.
SuppressMessage
(
"InfoDiagnostic"
,
"InfoDiagnostic:InfoDiagnostic"
,
Justification
:
=
"<Pending>"
,
Scope
:
=
"type"
,
Target
:
=
"Class1"
)
>
...
...
@@ -1551,9 +1551,9 @@ End Class
</
Workspace
>
Dim
expected
=
$
"
' This file is used by Code Analysis to maintain SuppressMessage
' This file is used by Code Analysis to maintain SuppressMessage
' attributes that are applied to this project.
' Project-level suppressions either have no target or are given
' Project-level suppressions either have no target or are given
' a specific target and scoped to a namespace, type, member, etc.
<Assembly: Diagnostics.CodeAnalysis.SuppressMessage(
""
InfoDiagnostic
""
,
""
InfoDiagnostic:InfoDiagnostic
""
, Justification:=
""
<Pending>
""
, Scope:=
""
type
""
, Target:=
""
Class1
""
)>
...
...
src/Features/Core/Portable/CodeFixes/Suppression/AbstractSuppressionCodeFixProvider.cs
浏览文件 @
5f0e8db3
...
...
@@ -21,9 +21,9 @@ internal abstract partial class AbstractSuppressionCodeFixProvider : IConfigurat
private
const
string
s_globalSuppressionsFileName
=
"GlobalSuppressions"
;
private
const
string
s_suppressionsFileCommentTemplate
=
@"
{0} This file is used by Code Analysis to maintain SuppressMessage
{0} This file is used by Code Analysis to maintain SuppressMessage
{0} attributes that are applied to this project.
{0} Project-level suppressions either have no target or are given
{0} Project-level suppressions either have no target or are given
{0} a specific target and scoped to a namespace, type, member, etc.
"
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录