Skip to content

Commit 4706fc8

Browse files
authored
build: treat warnings as error in all configurations (#572)
Signed-off-by: André Silva <[email protected]>
1 parent bb83de3 commit 4706fc8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

build/Common.props

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
<NuGetAudit>true</NuGetAudit>
66
<NuGetAuditMode>all</NuGetAuditMode>
77
<NuGetAuditLevel>low</NuGetAuditLevel>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
89
</PropertyGroup>
910

1011
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
1112
<DebugType>full</DebugType>
1213
<DebugSymbols>true</DebugSymbols>
1314
</PropertyGroup>
1415

15-
<PropertyGroup Condition="'$(Configuration)'=='Release'">
16-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
17-
</PropertyGroup>
18-
1916
<ItemGroup Condition="'$(OS)' == 'Unix'">
2017
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3"
2118
PrivateAssets="all" />

test/OpenFeature.Contrib.Providers.Flagd.E2e.Common/Utils/BeforeHook.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace OpenFeature.Contrib.Providers.Flagd.E2e.Common.Utils;
77

8+
#nullable enable
89
public class BeforeHook : Hook
910
{
1011
private readonly EvaluationContext context;

test/OpenFeature.Contrib.Providers.Flagd.E2e.Common/Utils/State.cs

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

44
namespace OpenFeature.Contrib.Providers.Flagd.E2e.Common.Utils;
55

6+
#nullable enable
67
public class State
78
{
89
public ResolverType? ProviderResolverType { get; set; }

0 commit comments

Comments
 (0)