From 96fa57c0458412878af452cd0b0760f3f8e7de26 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Thu, 19 Oct 2023 20:09:51 +0700 Subject: [PATCH] Lucene.Net.Store.LockStessTest: Suppressed SonarCloud S2245 because the Random class is only used to generate a timeout --- src/Lucene.Net/Store/LockStressTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Lucene.Net/Store/LockStressTest.cs b/src/Lucene.Net/Store/LockStressTest.cs index d9de1169a3..b5dc516c4f 100644 --- a/src/Lucene.Net/Store/LockStressTest.cs +++ b/src/Lucene.Net/Store/LockStressTest.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Net; @@ -35,6 +36,8 @@ namespace Lucene.Net.Store public static class LockStressTest // LUCENENET specific: CA1052 Static holder types should be Static or NotInheritable { [STAThread] + [SuppressMessage("CodeQuality", "IDE0079:Remove unnecessary suppression", Justification = "This is a SonarCloud issue")] + [SuppressMessage("Security Hotspot", "S2245:Using pseudorandom number generators (PRNGs) is security-sensitive", Justification = "The Random class is only used to generate a timeout value")] public static void Main(string[] args) { if (args.Length != 7)