Skip to content

Commit c3eab52

Browse files
committed
Remove information on configuring code quality severity from Error List
1 parent 4fc1228 commit c3eab52

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ To suppress violations using the code editor, follow these steps:
4949

5050
:::image type="content" source="media/suppress-diagnostic-from-editor-attribute.png" alt-text="Screenshot that shows in Source (attribute) selection from the Quick Actions Suppress menu." lightbox="media/suppress-diagnostic-from-editor-attribute.png":::
5151

52+
::: moniker range="vs-2019"
5253
### Suppress violations using the Error List
5354

5455
To suppress violations using the **Error List** window, follow these steps:
@@ -74,6 +75,7 @@ Diagnostics from live analysis, or IntelliSense, are always up-to-date with curr
7475
![Screenshot that shows the Error List source filter.](media/error-list-filter.png)
7576

7677
1. Select the diagnostics you want to suppress and proceed as described previously.
78+
::: moniker-end
7779

7880
## Suppress violations using a global suppression file
7981

@@ -89,6 +91,7 @@ To suppress violations with a global suppression file by using the code editor,
8991

9092
Visual Studio creates a tab in the code editor containing the new global suppression file.
9193

94+
::: moniker range="vs-2019"
9295
### Use a global suppression file from the Error List
9396

9497
To suppress violations with a global suppression file by using the **Error List** window, follow these steps:
@@ -102,6 +105,7 @@ To suppress violations with a global suppression file by using the **Error List*
102105
![Screenshot that shows the Preview Changes dialog box with a SuppressMessageAttribute attribute in the suppression file.](media/preview-changes-in-suppression-file.png)
103106

104107
1. Select **Apply** to save the global suppression file.
108+
::: moniker-end
105109

106110
## Suppress all current violations
107111

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ Each Roslyn analyzer rule, or *diagnostic*, has a default severity and suppressi
1919

2020
## Severity levels
2121

22+
::: moniker range=">=vs-2022"
23+
You can configure the severity of analyzer rules in an [EditorConfig file](#set-rule-severity-in-an-editorconfig-file) and from the [light bulb menu](#set-rule-severity-from-the-light-bulb-menu).
24+
::: moniker-end
25+
26+
::: moniker range="vs-2019"
27+
In Visual Studio 2019 version 16.3 and later, you can configure the severity of analyzer rules in an [EditorConfig file](#set-rule-severity-in-an-editorconfig-file), from the [light bulb menu](#set-rule-severity-from-the-light-bulb-menu), and from the **Error List** window.
28+
::: moniker-end
29+
2230
In Visual Studio 2019 version 16.3 and later, you can configure the severity of analyzer rules in an [EditorConfig file](#set-rule-severity-in-an-editorconfig-file), from the [light bulb menu](#set-rule-severity-from-the-light-bulb-menu), and from the **Error List** window.
2331

2432
The following table shows the different severity options that you can configure for a diagnostic:
@@ -53,7 +61,6 @@ You can set the rule severity using any of the following methods:
5361
::: moniker range=">=vs-2022"
5462
- [EditorConfig](#set-rule-severity-in-an-editorconfig-file)
5563
- [Light bulb menu](#set-rule-severity-from-the-light-bulb-menu)
56-
- [Error List window](#set-rule-severity-from-the-error-list-window)
5764
- [Solution Explorer](#set-rule-severity-from-solution-explorer)
5865
::: moniker-end
5966

@@ -170,6 +177,7 @@ Visual Studio provides a convenient way to configure a rule's severity from the
170177

171178
If you don't already have an EditorConfig file in the project, Visual Studio creates one for you.
172179

180+
::: moniker range=">=vs-2022"
173181
### Set rule severity from the Error List window
174182

175183
Visual Studio also provides a convenient way to configure a rule's severity from the error list context menu. Follow these steps:
@@ -183,6 +191,7 @@ Visual Studio also provides a convenient way to configure a rule's severity from
183191
Visual Studio adds an entry to the EditorConfig file to configure the rule to the requested level.
184192

185193
If you don't already have an EditorConfig file in the project, Visual Studio creates one for you.
194+
::: moniker-end
186195

187196
### Set rule severity from Solution Explorer
188197

0 commit comments

Comments
 (0)