Skip to content

Commit

Permalink
Use .NET Analyzers (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
jander-msft authored Oct 25, 2022
1 parent c7d7ae8 commit 0c07973
Show file tree
Hide file tree
Showing 97 changed files with 1,850 additions and 440 deletions.
9 changes: 5 additions & 4 deletions eng/Analyzers.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project>
<PropertyGroup>
<CodeAnalysisRuleset>$(MSBuildThisFileDirectory)CodeAnalysis.ruleset</CodeAnalysisRuleset>
<EnableAnalyzers>true</EnableAnalyzers>
<RunAnalyzers Condition="'$(RunAnalyzers)' == ''">true</RunAnalyzers>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0-beta3.final" PrivateAssets="all" />
<ItemGroup Condition="'$(RunAnalyzers)' != 'false'">
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)CodeAnalysis.globalconfig" />
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(MicrosoftCodeAnalysisNetAnalyzersVersion)" PrivateAssets="all" />
</ItemGroup>
</Project>
167 changes: 0 additions & 167 deletions eng/CodeAnalysis.Repository.ruleset

This file was deleted.

64 changes: 0 additions & 64 deletions eng/CodeAnalysis.Security.ruleset

This file was deleted.

Loading

0 comments on commit 0c07973

Please sign in to comment.