Skip to content

Commit 916d154

Browse files
committed
Add a column for default diagnostic severity
1 parent 48061d8 commit 916d154

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

DocumentationAnalyzers/DocumentationAnalyzers.Status.Generator/DocumentationDiagnostic.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ public class DocumentationDiagnostic
2727
/// </value>
2828
public string Name { get; set; }
2929

30+
/// <summary>
31+
/// Gets or sets the default diagnostic severity.
32+
/// </summary>
33+
/// <value>
34+
/// The default diagnostic severity.
35+
/// </value>
36+
public string Severity { get; set; }
37+
3038
/// <summary>
3139
/// Gets or sets a value indicating whether the diagnostic is enabled. This can indicate if the
3240
/// diagnostic is enabled by default, and if not, whether it is disabled because

DocumentationAnalyzers/DocumentationAnalyzers.Status.Generator/SolutionReader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public async Task<ImmutableList<DocumentationDiagnostic>> GetDiagnosticsAsync()
138138
{
139139
Id = descriptorInfo.Id,
140140
Category = descriptorInfo.Category,
141+
Severity = descriptorInfo.DefaultSeverity.ToString(),
141142
Status = status,
142143
Name = shortName,
143144
Title = descriptorInfo.Title.ToString(),

docs/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ <h2>This page is reporting the current status of <a href="https://github.com/Dot
6969
<td>
7070
Title
7171
</td>
72+
<td>
73+
Severity
74+
</td>
7275
<td>
7376
Status
7477
</td>
@@ -106,6 +109,9 @@ <h2>This page is reporting the current status of <a href="https://github.com/Dot
106109
<td>
107110
{{>Title}}
108111
</td>
112+
<td>
113+
{{>Severity}}
114+
</td>
109115
<td>
110116
{{>Status}}
111117
</td>

0 commit comments

Comments
 (0)