Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@

<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>

<Import Project="$(RepositoryEngineeringDir)Analyzers.props" />

<!-- Enable SDK supplied netanalyzers for all target frameworks -->
<PropertyGroup>
<EnableAnalyzers>true</EnableAnalyzers>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

</Project>
12 changes: 12 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
<None Include="$(ThirdPartyNotice)" Pack="true" PackagePath="notices" Visible="false" Condition=" '$(IsPackable)' == 'true' " />
</ItemGroup>

<!-- Global Analyzer Config -->
<ItemGroup Condition="'$(ProjectIsDeprecated)' != 'true'">
<!-- Include Common.globalconfig for non-deprecated projects-->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)eng/Common.globalconfig" />
</ItemGroup>

<!-- Test Project Global Analyzer Config -->
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<!-- Include Common.Test.globalconfig for Test projects-->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)eng/Common.Test.globalconfig" />
</ItemGroup>

<PropertyGroup>
<CentralPackagesFile>$(MSBuildThisFileDirectory)eng/Packages.props</CentralPackagesFile>
</PropertyGroup>
Expand Down
7 changes: 0 additions & 7 deletions eng/Analyzers.props

This file was deleted.

389 changes: 0 additions & 389 deletions eng/CodeAnalysis.ruleset

This file was deleted.

5 changes: 5 additions & 0 deletions eng/Common.Test.globalconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Top level entry required to mark this as a global AnalyzerConfig file
is_global = true

# Element parameter documentation should have text
dotnet_diagnostic.SA1614.severity = none
Loading