Skip to content

Commit 712dc49

Browse files
committed
Exclude files from code coverage
1 parent 165366b commit 712dc49

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/Common/src/Common/ConfigurationSchemaAttributes.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
#pragma warning disable
2-
31
// Licensed to the .NET Foundation under one or more agreements.
42
// The .NET Foundation licenses this file to you under the MIT license.
53

64
// Steeltoe: This file was copied from the .NET Aspire Configuration Schema generator
75
// at https://github.com/dotnet/aspire/tree/cb7cc4d78f8dd2b4df1053a229493cdbf88f50df/src/Tools/ConfigurationSchemaGenerator.
6+
#pragma warning disable
7+
8+
using System.Diagnostics.CodeAnalysis;
89

910
namespace Aspire;
1011

1112
/// <summary>
1213
/// Attribute used to automatically generate a JSON schema for a component's configuration.
1314
/// </summary>
15+
[ExcludeFromCodeCoverage(Justification = "Used while compiling Steeltoe, does not ship with Steeltoe.")]
1416
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
1517
internal sealed class ConfigurationSchemaAttribute : Attribute
1618
{
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)