Skip to content

Commit 2cd9b63

Browse files
committed
Exclude files from code coverage
1 parent 165366b commit 2cd9b63

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Common/src/Common/ConfigurationSchemaAttributes.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
// Steeltoe: This file was copied from the .NET Aspire Configuration Schema generator
77
// at https://github.com/dotnet/aspire/tree/cb7cc4d78f8dd2b4df1053a229493cdbf88f50df/src/Tools/ConfigurationSchemaGenerator.
88

9+
using System.Diagnostics.CodeAnalysis;
10+
911
namespace Aspire;
1012

1113
/// <summary>
1214
/// Attribute used to automatically generate a JSON schema for a component's configuration.
1315
/// </summary>
16+
[ExcludeFromCodeCoverage(Justification = "Used while compiling Steeltoe, does not ship with Steeltoe.")]
1417
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
1518
internal sealed class ConfigurationSchemaAttribute : Attribute
1619
{
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Diagnostics.CodeAnalysis;
6+
7+
[assembly: ExcludeFromCodeCoverage(Justification = "Used as target for actuator testing, does not ship with Steeltoe.")]

0 commit comments

Comments
 (0)