We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513b215 commit 78d9aa3Copy full SHA for 78d9aa3
1 file changed
StyleCop.Analyzers/StyleCop.Analyzers/Helpers/DiagnosticOptionsHelper.cs
@@ -6,6 +6,7 @@
6
7
namespace StyleCop.Analyzers.Helpers
8
{
9
+ using System;
10
using System.Collections.Immutable;
11
using Microsoft.CodeAnalysis;
12
using Microsoft.CodeAnalysis.Diagnostics;
@@ -61,7 +62,7 @@ internal static bool IsAnalyzerSuppressed(this CompilationOptions compilationOpt
61
62
case ReportDiagnostic.Suppress:
63
return true;
64
case ReportDiagnostic.Default:
- return !descriptor.IsEnabledByDefault;
65
+ throw new InvalidOperationException("This should be unreachable.");
66
default:
67
return false;
68
}
0 commit comments