Skip to content

Commit 8aa1f7c

Browse files
committed
Hide diagnostics that are not configurable
1 parent afec253 commit 8aa1f7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

StyleCop.Analyzers.Status.Generator/SolutionReader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ public async Task<ImmutableList<StyleCopDiagnostic>> GetDiagnosticsAsync()
149149
foreach (var descriptorInfo in descriptorInfos)
150150
{
151151
string status = this.GetStatus(classSymbol, syntaxRoot, semanticModel, descriptorInfo);
152+
if (descriptorInfo.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
153+
{
154+
continue;
155+
}
152156

153157
var diagnostic = new StyleCopDiagnostic
154158
{

0 commit comments

Comments
 (0)