提交 336f42dd 编写于 作者: S Srivatsn Narayanan

Create props file in the System.Runtime.Analyzers with CodeAnalysisOverrides...

Create props file in the System.Runtime.Analyzers with CodeAnalysisOverrides so that the rules implemented by these analyzers are not run when FxCop runs for the project.
上级 9ed1bb1f
......@@ -8,7 +8,6 @@
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1003;
-Microsoft.Design#CA1019;
-Microsoft.Design#CA1024;
-Microsoft.Design#CA1027;
......
......@@ -8,14 +8,9 @@
-->
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1001;
-Microsoft.Design#CA1008;
-Microsoft.Design#CA1012;
-Microsoft.Design#CA1014;
-Microsoft.Design#CA1016;
-Microsoft.Design#CA1017;
-Microsoft.Design#CA1018;
-Microsoft.Design#CA1036;
-Microsoft.Design#CA1052;
-Microsoft.Design#CA1053;
-Microsoft.Design#CA1060;
......@@ -30,7 +25,6 @@
-Microsoft.Performance#CA1813;
-Microsoft.Usage#CA2229;
-Microsoft.Usage#CA2231;
-Microsoft.Usage#CA2235;
-Microsoft.Usage#CA2237;
</CodeAnalysisRuleSetOverrides>
......
......@@ -69,6 +69,9 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="System.Runtime.CSharp.Analyzers.props">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
......
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
This file contains the rules that have been implemented in this package and therefore should be disabled for the binary FxCop.
When a new rule is implemented in this package, make sure to add an entry below to disable that rule in FxCop to avoid duplicate
issues.
The format is -[Category]#[ID]
-->
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1019;
</CodeAnalysisRuleSetOverrides>
</PropertyGroup>
</Project>
\ No newline at end of file
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
This file contains the rules that have been implemented in this package and therefore should be disabled for the binary FxCop.
When a new rule is implemented in this package, make sure to add an entry below to disable that rule in FxCop to avoid duplicate
issues.
The format is -[Category]#[ID]
-->
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1001;
-Microsoft.Design#CA1014;
-Microsoft.Design#CA1016;
-Microsoft.Design#CA1017;
-Microsoft.Design#CA1036;
-Microsoft.Usage#CA2231;
</CodeAnalysisRuleSetOverrides>
</PropertyGroup>
</Project>
\ No newline at end of file
......@@ -50,6 +50,10 @@
<InternalsVisibleToTest Include="System.Runtime.Analyzers.UnitTests" />
</ItemGroup>
<ItemGroup>
<Content Include="System.Runtime.Analyzers.Common.props">
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
......
......@@ -68,6 +68,9 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="System.Runtime.VisualBasic.Analyzers.props">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
......
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
This file contains the rules that have been implemented in this package and therefore should be disabled for the binary FxCop.
When a new rule is implemented in this package, make sure to add an entry below to disable that rule in FxCop to avoid duplicate
issues.
The format is -[Category]#[ID]
-->
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1019;
</CodeAnalysisRuleSetOverrides>
</PropertyGroup>
</Project>
\ No newline at end of file
......@@ -8,7 +8,6 @@
<PropertyGroup>
<CodeAnalysisRuleSetOverrides>$(CodeAnalysisRuleSetOverrides);
-Microsoft.Design#CA1003;
-Microsoft.Design#CA1019;
-Microsoft.Design#CA1024;
-Microsoft.Design#CA1027;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册