Skip to content

Commit 8082765

Browse files
authored
Remove redundant suppressions after update to CSharpGuidelinesAnalyzer v3.8.4 (#1351)
1 parent da8562a commit 8082765

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/JsonApiDotNetCore.SourceGenerators/ControllerSourceGenerator.cs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using Microsoft.CodeAnalysis.CSharp.Syntax;
77
using Microsoft.CodeAnalysis.Text;
88

9-
#pragma warning disable RS2008 // Enable analyzer release tracking
10-
119
namespace JsonApiDotNetCore.SourceGenerators;
1210
// To debug in Visual Studio (requires v17.2 or higher):
1311
// - Set JsonApiDotNetCore.SourceGenerators as startup project

test/JsonApiDotNetCoreTests/UnitTests/Links/LinkInclusionTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ public ResourceType GetResourceTypeForController(Type? controllerType)
403403

404404
private sealed class FakeLinkGenerator : LinkGenerator
405405
{
406-
#pragma warning disable AV1553 // Do not use optional parameters with default value null for strings, collections or tasks
407406
public override string GetPathByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values,
408407
RouteValueDictionary? ambientValues = null, PathString? pathBase = null, FragmentString fragment = new(), LinkOptions? options = null)
409408
{
@@ -428,6 +427,5 @@ public override string GetUriByAddress<TAddress>(TAddress address, RouteValueDic
428427
{
429428
throw new NotImplementedException();
430429
}
431-
#pragma warning restore AV1553 // Do not use optional parameters with default value null for strings, collections or tasks
432430
}
433431
}

0 commit comments

Comments
 (0)