提交 eedfec87 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #21052 from sharwell/enable-analyzers

Enable analyzers on Roslyn.sln except for two very slow ones
......@@ -93,8 +93,8 @@
<Rule Id="RS0026" Action="Error" />
<Rule Id="RS0027" Action="Error" />
</Rules>
<Rules AnalyzerId="System.Collections.Immutable.Analyzers" RuleNamespace="System.Collections.Immutable.Analyzers">
<Rule Id="RS0012" Action="Warning" />
<Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers.ImmutableCollections">
<Rule Id="RS0012" Action="None" /> <!-- Disabled for performance reasons: https://github.com/dotnet/roslyn/issues/21051 -->
</Rules>
<Rules AnalyzerId="System.Runtime.Analyzers" RuleNamespace="System.Runtime.Analyzers">
<Rule Id="CA1305" Action="None" />
......@@ -117,8 +117,8 @@
<Rule Id="CA2101" Action="None" />
<Rule Id="RS0015" Action="Warning" />
</Rules>
<Rules AnalyzerId="System.Threading.Tasks.Analyzers" RuleNamespace="System.Threading.Tasks.Analyzers">
<Rule Id="RS0018" Action="Warning" />
<Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers.Tasks">
<Rule Id="RS0018" Action="None" /> <!-- Disabled for performance reasons: https://github.com/dotnet/roslyn/issues/21051 -->
</Rules>
<Rules AnalyzerId="XmlDocumentationComments.Analyzers" RuleNamespace="XmlDocumentationComments.Analyzers">
<Rule Id="RS0010" Action="Warning" />
......
......@@ -24,10 +24,7 @@
Otherwise, it writes to the same file (GeneratedAssemblyInfoFile) as our GenerateAssemblyInfoFile target.
Follow-up issue to reconcile the two: https://github.com/dotnet/roslyn/issues/19645 -->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<!-- Disabling on developer builds until perf issue figured out
https://github.com/dotnet/roslyn/issues/21041 -->
<UseRoslynAnalyzers Condition="'$(UseRoslynAnalyzers)' == '' AND '$(DeveloperBuild)' != 'true'">true</UseRoslynAnalyzers>
<UseRoslynAnalyzers Condition="'$(UseRoslynAnalyzers)' == ''">true</UseRoslynAnalyzers>
<BaseOutputPath Condition="'$(BaseOutputPath)' == ''">$(RepoRoot)Binaries\</BaseOutputPath>
<OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RepoRoot)Binaries\Obj\</BaseIntermediateOutputPath>
......
......@@ -5,7 +5,4 @@
<Rules AnalyzerId="Roslyn.Diagnostics.Analyzers.CSharp" RuleNamespace="Roslyn.Diagnostics.Analyzers.CSharp">
<Rule Id="RS0013" Action="Warning" />
</Rules>
<Rules AnalyzerId="Roslyn.Diagnostics.Analyzers.CSharp" RuleNamespace="Roslyn.Diagnostics.Analyzers.CSharp">
<Rule Id="RS0018" Action="Error" />
</Rules>
</RuleSet>
\ No newline at end of file
......@@ -8,7 +8,4 @@
<Rules AnalyzerId="Roslyn.Diagnostics.Analyzers.VisualBasic" RuleNamespace="Roslyn.Diagnostics.Analyzers.VisualBasic">
<Rule Id="RS0013" Action="Warning" />
</Rules>
<Rules AnalyzerId="Roslyn.Diagnostics.Analyzers.VisualBasic" RuleNamespace="Roslyn.Diagnostics.Analyzers.VisualBasic">
<Rule Id="RS0018" Action="Error" />
</Rules>
</RuleSet>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册