From 083666f9b0c0fdf049ac150682c6971fc9c856f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Wed, 30 Oct 2024 09:04:42 +0100 Subject: [PATCH] Fix IDE0060 and disable SA1313 PR with fixes for SA1313 in progress https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/3892 --- .../SampleHandlers.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/OpenTelemetry.Instrumentation.AWSLambda.Tests/SampleHandlers.cs b/test/OpenTelemetry.Instrumentation.AWSLambda.Tests/SampleHandlers.cs index 41843b6084..94bf75053b 100644 --- a/test/OpenTelemetry.Instrumentation.AWSLambda.Tests/SampleHandlers.cs +++ b/test/OpenTelemetry.Instrumentation.AWSLambda.Tests/SampleHandlers.cs @@ -8,30 +8,33 @@ namespace OpenTelemetry.Instrumentation.AWSLambda.Tests; internal class SampleHandlers { // Action - public void SampleHandlerSyncInputAndNoReturn(string str, ILambdaContext context) +#pragma warning disable SA1313 + public void SampleHandlerSyncInputAndNoReturn(string _1, ILambdaContext _2) { } // Func - public string SampleHandlerSyncInputAndReturn(string str, ILambdaContext context) + public string SampleHandlerSyncInputAndReturn(string str, ILambdaContext _2) { return str; } // Func - public async Task SampleHandlerAsyncInputAndNoReturn(string str, ILambdaContext context) + public async Task SampleHandlerAsyncInputAndNoReturn(string _1, ILambdaContext _2) { await Task.Delay(10); } // Func> - public async Task SampleHandlerAsyncInputAndReturn(string str, ILambdaContext context) + public async Task SampleHandlerAsyncInputAndReturn(string str, ILambdaContext _2) { await Task.Delay(10); return str; } - public void SampleHandlerSyncNoReturnException(string str, ILambdaContext context) + // Action + public void SampleHandlerSyncNoReturnException(string str, ILambdaContext _2) +#pragma warning restore SA1313 { throw new Exception(str); }