Skip to content

Commit 0ef4b0d

Browse files
Fix some analysis issues
1 parent ff73b6a commit 0ef4b0d

File tree

9 files changed

+17
-15
lines changed

9 files changed

+17
-15
lines changed

src/RestClient.Net.Abstractions/Logging/EventId.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma warning disable CA1815 // Override equals and operator equals on value types
2-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
2+
#pragma warning disable IDE0130 // Namespace does not match folder structure
33

44
namespace Microsoft.Extensions.Logging
55
{
@@ -16,5 +16,3 @@ public EventId(int id, string? name = null)
1616
}
1717
}
1818

19-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
20-
#pragma warning restore CA1815 // Override equals and operator equals on value types

src/RestClient.Net.Abstractions/Logging/ILogger.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
22

33
using System;
44

@@ -19,7 +19,4 @@ public interface ILogger<T> : ILogger
1919
{
2020

2121
}
22-
}
23-
24-
25-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
22+
}

src/RestClient.Net.Abstractions/Logging/ILoggerFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-

1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
2+
23
using System;
34

45
namespace Microsoft.Extensions.Logging

src/RestClient.Net.Abstractions/Logging/LogLevel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
2-
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
32

43
namespace Microsoft.Extensions.Logging
54
{

src/RestClient.Net.Abstractions/Logging/LoggerFactoryExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Microsoft.Extensions.Logging.Abstractions
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
2+
3+
namespace Microsoft.Extensions.Logging.Abstractions
24
{
35
public static class LoggerFactoryExtensions
46
{

src/RestClient.Net.Abstractions/Logging/NullLogger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using RestClient.Net;
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
2+
3+
using RestClient.Net;
24
using System;
35

46
namespace Microsoft.Extensions.Logging.Abstractions

src/RestClient.Net.Abstractions/Logging/NullLoggerFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma warning disable CA1063 // Implement IDisposable Correctly
22
#pragma warning disable CA1816 // Dispose methods should call SuppressFinalize
3+
#pragma warning disable IDE0130 // Namespace does not match folder structure
34

45
namespace Microsoft.Extensions.Logging.Abstractions
56
{

src/RestClient.Net.Abstractions/Logging/NullLoggerOfT.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
#pragma warning disable IDE0130 // Namespace does not match folder structure
2+
3+
using System;
24

35
namespace Microsoft.Extensions.Logging.Abstractions
46
{

src/RestClient.Net.Abstractions/RestClient.Net.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</Choose>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.9.0">
36+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.5.0">
3737
<PrivateAssets>all</PrivateAssets>
3838
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3939
</PackageReference>

0 commit comments

Comments
 (0)