From 1d88c06887e473ce822f789bc73e23f58f7d23de Mon Sep 17 00:00:00 2001 From: Marius Thesing Date: Sat, 14 Sep 2024 09:59:53 +0200 Subject: [PATCH] fix S3993: Custom attributes should be marked with "System.AttributeUsageAttribute" https://rules.sonarsource.com/csharp/RSPEC-3993/ --- .../Common/TestMethodForPlatformAttribute.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs b/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs index fcfaf737..c8db5f63 100644 --- a/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs +++ b/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs @@ -1,9 +1,11 @@ -using System.Runtime.InteropServices; +using System; +using System.Runtime.InteropServices; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Renci.SshNet.Tests.Common { + [AttributeUsage(AttributeTargets.Method)] public sealed class TestMethodForPlatformAttribute : TestMethodAttribute { public TestMethodForPlatformAttribute(string platform)