From dae32a013797869d4973fcf91ceb9207aa8888b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 31 May 2026 11:20:20 +0000 Subject: [PATCH 1/2] docs: use recommended OutputItemType/ReferenceOutputAssembly sample in installation instructions --- docs/docs/intro.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/intro.md b/docs/docs/intro.md index 2d1e17f..6765a65 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -20,12 +20,12 @@ Add the package reference to your `.csproj` file: ```xml - + ``` :::note -The `PrivateAssets="all"` attribute ensures the analyzer package is only used for analysis and isn't included as a dependency when your project is referenced by others. +The `OutputItemType="Analyzer"` and `ReferenceOutputAssembly="false"` attributes ensure the package is used only for analysis and is not included as a runtime dependency. ::: ## Configuration From a2bbaa0d40fa1c55bd798c46e3c3377e3ee4c696 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 31 May 2026 11:23:45 +0000 Subject: [PATCH 2/2] docs: add SW002 (disabled by default) to rule configuration sample in installation instructions --- docs/docs/intro.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/intro.md b/docs/docs/intro.md index 6765a65..e1f5cfe 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -56,6 +56,9 @@ dotnet_diagnostic.SWGQL03.severity = error # Change a rule to warning (default) dotnet_diagnostic.SWGQL01.severity = warning + +# Enable rules that are disabled by default +dotnet_diagnostic.SW002.severity = warning # Unused method (disabled by default — see SW002 docs for caveats) ``` ## Verification