You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/in-source-suppression-overview.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ To suppress violations using the code editor, follow these steps:
49
49
50
50
:::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":::
51
51
52
+
::: moniker range="vs-2019"
52
53
### Suppress violations using the Error List
53
54
54
55
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
74
75

75
76
76
77
1. Select the diagnostics you want to suppress and proceed as described previously.
78
+
::: moniker-end
77
79
78
80
## Suppress violations using a global suppression file
79
81
@@ -89,6 +91,7 @@ To suppress violations with a global suppression file by using the code editor,
89
91
90
92
Visual Studio creates a tab in the code editor containing the new global suppression file.
91
93
94
+
::: moniker range="vs-2019"
92
95
### Use a global suppression file from the Error List
93
96
94
97
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*
102
105

103
106
104
107
1. Select **Apply** to save the global suppression file.
Copy file name to clipboardExpand all lines: docs/code-quality/use-roslyn-analyzers.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,14 @@ Each Roslyn analyzer rule, or *diagnostic*, has a default severity and suppressi
19
19
20
20
## Severity levels
21
21
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
+
22
30
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.
23
31
24
32
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:
0 commit comments