Skip to content

Commit

Permalink
Lucene.Net.Store.LockStessTest: Suppressed SonarCloud S2245 because t…
Browse files Browse the repository at this point in the history
…he Random class is only used to generate a timeout (apache#882)
  • Loading branch information
NightOwl888 authored Oct 19, 2023
1 parent f7d1bfa commit 2c10224
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lucene.Net/Store/LockStressTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Net;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2c10224

Please sign in to comment.