From e8de72f14f1376c5cf300e0c3100bbbd620b01cd Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Fri, 15 Nov 2019 09:47:56 -0500 Subject: [PATCH] Fix location of CodeAnalysis.ruleset --- docs/libraries/project-docs/analyzers.md | 4 ++-- .../src/System.Private.CoreLib/System.Private.CoreLib.csproj | 2 +- .../{System.Private.CoreLib/src => }/CodeAnalysis.ruleset | 0 src/libraries/Directory.Build.props | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/libraries/{System.Private.CoreLib/src => }/CodeAnalysis.ruleset (100%) diff --git a/docs/libraries/project-docs/analyzers.md b/docs/libraries/project-docs/analyzers.md index 42e392f4b4cbae..b36b1d3c350f89 100644 --- a/docs/libraries/project-docs/analyzers.md +++ b/docs/libraries/project-docs/analyzers.md @@ -4,11 +4,11 @@ This repo relies on [.NET Compiler Platform analyzers](https://docs.microsoft.co To add an analyzer package to the build: 1. Select a package you want to employ, for example https://www.nuget.org/packages/SonarAnalyzer.CSharp/. This analyzer package's name is `SonarAnalyzer.CSharp` and the latest version as of this edit is `7.15.0.8572`. -2. Add a PackageReference entry to https://github.com/dotnet/corefx/blob/master/eng/Analyzers.props, e.g. +2. Add a PackageReference entry to https://github.com/dotnet/runtime/blob/master/eng/Analyzers.props, e.g. ```XML ``` -3. After that point, all builds will employ all rules in that analyzer package that are enabled by default. Rules can be disabled by adding entries to the https://github.com/dotnet/corefx/blob/master/src/Common/src/CoreLib/CodeAnalysis.ruleset file, e.g. +3. After that point, all builds will employ all rules in that analyzer package that are enabled by default. Rules can be disabled by adding entries to the https://github.com/dotnet/runtime/blob/master/src/libraries/CodeAnalysis.ruleset file, e.g. ```XML diff --git a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 960a617f839bec..8d98beb06da74e 100644 --- a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -446,7 +446,7 @@ - $(CoreLibSharedDir)CodeAnalysis.ruleset + $(LibrariesProjectRoot)CodeAnalysis.ruleset diff --git a/src/libraries/System.Private.CoreLib/src/CodeAnalysis.ruleset b/src/libraries/CodeAnalysis.ruleset similarity index 100% rename from src/libraries/System.Private.CoreLib/src/CodeAnalysis.ruleset rename to src/libraries/CodeAnalysis.ruleset diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 5785db949cc12b..84d0266966afd3 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -364,7 +364,7 @@ false - $(CoreLibSharedDir)CodeAnalysis.ruleset + $(LibrariesProjectRoot)CodeAnalysis.ruleset false