Skip to content

Commit f860d0c

Browse files
committed
Exclude AnalyzerConstants.DisabledNoTests from code coverage
1 parent 807a49a commit f860d0c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/AnalyzerConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace StyleCop.Analyzers
55
{
6+
using System.Diagnostics.CodeAnalysis;
67
using Microsoft.CodeAnalysis;
78

89
internal static class AnalyzerConstants
@@ -27,6 +28,7 @@ static AnalyzerConstants()
2728
/// <see cref="DiagnosticDescriptor(string, string, string, string, DiagnosticSeverity, bool, string, string, string[])"/>
2829
/// to disable a diagnostic which is currently untested.
2930
/// </value>
31+
[ExcludeFromCodeCoverage]
3032
internal static bool DisabledNoTests { get; }
3133

3234
/// <summary>

0 commit comments

Comments
 (0)