Skip to content

Commit 9b774f7

Browse files
committed
edits
1 parent c376968 commit 9b774f7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/code-quality/in-source-suppression-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ The properties of the attribute include:
194194

195195
- [`module`](#module-suppression-scope): This scope suppresses warnings against an assembly. It's a global suppression that applies to the entire project.
196196

197-
- `resource`: ([Legacy FxCop](../code-quality/static-code-analysis-for-managed-code-overview.md) only) This scope suppresses warnings in diagnostic info written to resource files that are part of the module (assembly). This scope isn't read or respected in C#/VB compilers for Roslyn analyzer diagnostics, which only analyze source files.
197+
- `resource`: ([legacy analysis](../code-quality/static-code-analysis-for-managed-code-overview.md) only) This scope suppresses warnings in diagnostic info written to resource files that are part of the module (assembly). This scope isn't read or respected in C#/VB compilers for Roslyn analyzer diagnostics, which only analyze source files.
198198

199199
- `type`: This scope suppresses warnings against a type.
200200

@@ -222,7 +222,7 @@ If there are strict performance reasons for minimizing in-source suppression met
222222

223223
For maintainability reasons, omitting the rule name isn't recommended.
224224

225-
### Suppress selective violations within a method body
225+
### Suppress selective violations within a method body (legacy analysis only)
226226

227227
Suppression attributes can be applied to a method, but can't be embedded within a method body. All violations of a particular rule are suppressed if you add the <xref:System.Diagnostics.CodeAnalysis.SuppressMessageAttribute> attribute to the method.
228228

docs/code-quality/roslyn-analyzers-overview.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Visual Studio includes a core set of Roslyn analyzers, which are always active.
7373

7474
### Scope
7575

76-
If you install an analyzer as a NuGet package, the preferred method, it applies only to the project where the NuGet package is installed. Otherwise, if you install an analyzer as a Visual Studio extension, it applies at the solution level and to all instances of Visual Studio. In team environments, an analyzer you install as a NuGet package is in scope for all developers that work on that project.
76+
If you install an analyzer as a NuGet package, the preferred method for external analyzers, it applies only to the project where the NuGet package is installed. Otherwise, if you install an analyzer as a Visual Studio extension, it applies at the solution level and to all instances of Visual Studio. In team environments, an analyzer you install as a NuGet package is in scope for all developers that work on that project.
7777

7878
> [!NOTE]
7979
> First-party analyzers ship within the .NET SDK. It's preferable that you enable these analyzers from the .NET SDK instead of installing them as a `Microsoft.CodeAnalysis.NetAnalyzers` [NuGet package](https://www.nuget.org/packages/Microsoft.CodeAnalysis.NetAnalyzers). Enabling the analyzers from the .NET SDK ensures that you automatically get analyzer bug fixes and new analyzers as soon as you update the SDK. For more information about analyzers, see [Enable or install first-party .NET analyzers](install-net-analyzers.md).
@@ -92,9 +92,7 @@ The following screenshot shows the command-line build output from building a pro
9292

9393
### Rule severity
9494

95-
Visual Studio 2019 version 16.3 and later, you can configure rule severity using an EditorConfig file instead of a ruleset.
96-
97-
If you want to configure [analyzer rule severity](../code-quality/use-roslyn-analyzers.md#configure-severity-levels) from Solution Explorer, you must install the analyzer as a NuGet package. You can't configure rule severity from analyzers that were installed as a Visual Studio extension.
95+
If you want to configure [analyzer rule severity](../code-quality/use-roslyn-analyzers.md#configure-severity-levels) for external analyzers, you must install the analyzer as a NuGet package. You can't configure rule severity from analyzers that were installed as a Visual Studio extension.
9896

9997
## Next steps
10098

0 commit comments

Comments
 (0)