You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2023/10/19 14:22:38 UTC

[lucenenet] branch master updated: Lucene.Net.Store.LockStessTest: Suppressed SonarCloud S2245 because the Random class is only used to generate a timeout (#882)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c10224d3 Lucene.Net.Store.LockStessTest: Suppressed SonarCloud S2245 because the Random class is only used to generate a timeout (#882)
2c10224d3 is described below

commit 2c10224d3a504397cb378bed6d5cd34362fbba95
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Thu Oct 19 21:22:32 2023 +0700

    Lucene.Net.Store.LockStessTest: Suppressed SonarCloud S2245 because the Random class is only used to generate a timeout (#882)
---
 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 d9de1169a..b5dc516c4 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)