Skip to content

Commit a41d385

Browse files
committed
Suppress IDE0130 warnings in DependencyInjection.cs
Added #pragma directives to disable and restore IDE0130 warnings for multiple namespaces in DependencyInjection.cs. This ensures the code compiles without issues despite namespace-folder structure mismatches.
1 parent 065c256 commit a41d385

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/Primitively.Abstractions/DependencyInjection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using Primitively.Configuration;
22

3+
#pragma warning disable IDE0130 // Namespace does not match folder structure
34
namespace Microsoft.Extensions.DependencyInjection;
5+
#pragma warning restore IDE0130 // Namespace does not match folder structure
46

57
/// <summary>
68
/// This static class provides extension methods for the <see cref="IServiceCollection"/> to add Primitively services.

src/Primitively.AspNetCore.Mvc/DependencyInjection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
using Primitively.AspNetCore.Mvc.ModelBinding;
33
using Primitively.Configuration;
44

5+
#pragma warning disable IDE0130 // Namespace does not match folder structure
56
namespace Microsoft.Extensions.DependencyInjection;
7+
#pragma warning restore IDE0130 // Namespace does not match folder structure
68

79
/// <summary>
810
/// This static class provides extension methods to the <see cref="PrimitivelyConfigurator"/> for adding ASP.NET MVC services.

src/Primitively.AspNetCore.SwaggerGen/DependencyInjection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
using Primitively.Configuration;
33
using Swashbuckle.AspNetCore.SwaggerGen;
44

5+
#pragma warning disable IDE0130 // Namespace does not match folder structure
56
namespace Microsoft.Extensions.DependencyInjection;
7+
#pragma warning restore IDE0130 // Namespace does not match folder structure
68

79
/// <summary>
810
/// This static class provides extension methods to the <see cref="PrimitivelyConfigurator"/> for adding SwaggerGen services.

src/Primitively.MongoDB.Bson/DependencyInjection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
using Primitively.MongoDB.Bson;
33
using Primitively.MongoDB.Bson.Serialization;
44

5+
#pragma warning disable IDE0130 // Namespace does not match folder structure
56
namespace Microsoft.Extensions.DependencyInjection;
7+
#pragma warning restore IDE0130 // Namespace does not match folder structure
68

79
/// <summary>
810
/// This static class provides extension methods to the <see cref="PrimitivelyConfigurator"/> for adding BSON services.

0 commit comments

Comments
 (0)