Skip to content
Merged
5 changes: 1 addition & 4 deletions build/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<!-- Workaround for IDE0005 (Remove unnecessary usings/imports); see https://github.com/dotnet/roslyn/issues/41640 -->
<NoWarn>EnableGenerateDocumentationFile</NoWarn>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
Expand All @@ -18,10 +19,6 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="System.Threading.Channels" Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'" />
Expand Down
5 changes: 5 additions & 0 deletions build/Common.tests.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<Content Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.slnx'))\build\xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.Contains('E2E'))">
<Using Include="Reqnroll" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net462</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>OpenFeature.DependencyInjection</RootNamespace>
</PropertyGroup>

Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature.Hosting/OpenFeature.Hosting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>OpenFeature</RootNamespace>
</PropertyGroup>

Expand Down
5 changes: 0 additions & 5 deletions src/OpenFeature/Api.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using OpenFeature.Constant;
using OpenFeature.Error;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Threading;
using OpenFeature.Model;

namespace OpenFeature;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/FeatureProviderException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using OpenFeature.Constant;

namespace OpenFeature.Error;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/FlagNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/GeneralException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/InvalidContextException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/ParseErrorException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/ProviderFatalException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/ProviderNotReadyException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/TargetingKeyMissingException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Error/TypeMismatchException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using OpenFeature.Constant;

Expand Down
3 changes: 0 additions & 3 deletions src/OpenFeature/EventExecutor.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Channels;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using OpenFeature.Constant;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Extension/EnumExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.ComponentModel;
using System.Linq;

namespace OpenFeature.Extension;

Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/FeatureProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
4 changes: 0 additions & 4 deletions src/OpenFeature/Hook.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Model;

namespace OpenFeature;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/HookData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using OpenFeature.Model;

Expand Down
4 changes: 0 additions & 4 deletions src/OpenFeature/HookRunner.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using OpenFeature.Model;

Expand Down
4 changes: 0 additions & 4 deletions src/OpenFeature/Hooks/LoggingHook.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using OpenFeature.Model;

Expand Down
3 changes: 0 additions & 3 deletions src/OpenFeature/IFeatureClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/EvaluationContext.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

namespace OpenFeature.Model;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/EvaluationContextBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace OpenFeature.Model;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Model/HookContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using OpenFeature.Constant;

namespace OpenFeature.Model;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Model/ImmutableMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Collections.Immutable;

namespace OpenFeature.Model;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Model/ProviderEvents.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using OpenFeature.Constant;

namespace OpenFeature.Model;
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Model/Structure.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;

Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/StructureBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

namespace OpenFeature.Model;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/TrackingEventDetails.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

namespace OpenFeature.Model;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/TrackingEventDetailsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace OpenFeature.Model;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Model/Value.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

namespace OpenFeature.Model;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/NoOpProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
5 changes: 0 additions & 5 deletions src/OpenFeature/OpenFeatureClient.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using OpenFeature.Constant;
Expand Down
4 changes: 0 additions & 4 deletions src/OpenFeature/ProviderRepository.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using OpenFeature.Constant;
Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Providers/Memory/Flag.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using OpenFeature.Constant;
using OpenFeature.Error;
using OpenFeature.Model;
Expand Down
4 changes: 0 additions & 4 deletions src/OpenFeature/Providers/Memory/InMemoryProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/SharedHookContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
2 changes: 0 additions & 2 deletions src/OpenFeature/Telemetry/EvaluationEvent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;

namespace OpenFeature.Telemetry;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/OpenFeature/Telemetry/EvaluationEventBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using OpenFeature.Constant;
using OpenFeature.Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

using System.Collections.Immutable;
using System.Threading.Tasks;
using AutoFixture;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using OpenFeature.Constant;
using OpenFeature.DependencyInjection.Internal;
using OpenFeature.Model;
using Xunit;

namespace OpenFeature.DependencyInjection.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.Extensions.Options;
using OpenFeature.DependencyInjection.Internal;
using OpenFeature.Model;
using Xunit;

namespace OpenFeature.DependencyInjection.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using NSubstitute;
using Xunit;

namespace OpenFeature.DependencyInjection.Tests;

Expand Down
5 changes: 0 additions & 5 deletions test/OpenFeature.E2ETests/Steps/BaseStepDefinitions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.E2ETests.Utils;
using OpenFeature.Model;
using OpenFeature.Providers.Memory;
using Reqnroll;

namespace OpenFeature.E2ETests.Steps;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Threading.Tasks;
using OpenFeature.E2ETests.Utils;
using Reqnroll;
using Xunit;

namespace OpenFeature.E2ETests.Steps;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System.Threading.Tasks;
using OpenFeature.Constant;
using OpenFeature.E2ETests.Utils;
using OpenFeature.Extension;
using OpenFeature.Model;
using Reqnroll;
using Xunit;

namespace OpenFeature.E2ETests.Steps;

Expand Down
2 changes: 0 additions & 2 deletions test/OpenFeature.E2ETests/Steps/HooksStepDefinitions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using OpenFeature.E2ETests.Utils;
using Reqnroll;
using Xunit;

namespace OpenFeature.E2ETests.Steps;

Expand Down
4 changes: 0 additions & 4 deletions test/OpenFeature.E2ETests/Steps/MetadataStepDefinitions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Linq;
using OpenFeature.E2ETests.Utils;
using OpenFeature.Model;
using Reqnroll;
using Xunit;

namespace OpenFeature.E2ETests.Steps;

Expand Down
2 changes: 0 additions & 2 deletions test/OpenFeature.E2ETests/Utils/ContextStoringProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Model;

namespace OpenFeature.E2ETests.Utils;
Expand Down
1 change: 0 additions & 1 deletion test/OpenFeature.E2ETests/Utils/FlagTypesUtil.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;

namespace OpenFeature.E2ETests.Utils;
Expand Down
4 changes: 0 additions & 4 deletions test/OpenFeature.E2ETests/Utils/TestHook.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using OpenFeature.Model;

namespace OpenFeature.E2ETests.Utils;
Expand Down
Loading