Skip to content

Commit 72a7f14

Browse files
authored
Merge pull request #2 from ricardoboss/issues/1-exclude-from-coverage
2 parents c91ac02 + ee9903f commit 72a7f14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BuildTimestamp.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ public void Execute(GeneratorExecutionContext context)
1414

1515
string source = $@"// Auto-generated code
1616
using System;
17+
using System.Diagnostics.CodeAnalysis;
1718
1819
namespace {nameof(cmdwtf)}
1920
{{
2021
/// <summary>
2122
/// A static class representing when it was generated.
2223
/// </summary>
24+
[ExcludeFromCodeCoverage]
2325
internal static class {nameof(BuildTimestamp)}
2426
{{
2527
/// <summary>

0 commit comments

Comments
 (0)