diff --git a/Tests/test_Trady.cs b/Tests/test_Trady.cs index 5d2f356c..10de3783 100644 --- a/Tests/test_Trady.cs +++ b/Tests/test_Trady.cs @@ -5,9 +5,10 @@ using Trady.Core.Infrastructure; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; -[SuppressMessage("Security", "SCS0005:Weak random number generator.", Justification = "Acceptable for tests")] public class TradyTests { private readonly TBarSeries bars; diff --git a/Tests/test_Tulip.cs b/Tests/test_Tulip.cs index c9d686b8..8b495acc 100644 --- a/Tests/test_Tulip.cs +++ b/Tests/test_Tulip.cs @@ -3,9 +3,10 @@ using Tulip; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; -[SuppressMessage("Security", "SCS0005:Weak random number generator.", Justification = "Acceptable for tests")] public class TulipTests { private readonly GbmFeed feed; diff --git a/Tests/test_eventing.cs b/Tests/test_eventing.cs index 582517f7..90a71ac8 100644 --- a/Tests/test_eventing.cs +++ b/Tests/test_eventing.cs @@ -1,6 +1,8 @@ using Xunit; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; public class EventingTests @@ -70,10 +72,10 @@ public class EventingTests } } - private static double GetRandomDouble(RandomNumberGenerator rng) - { - byte[] bytes = new byte[8]; - rng.GetBytes(bytes); - return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue; - } +private static double GetRandomDouble(RandomNumberGenerator rng) +{ + byte[] bytes = new byte[8]; + rng.GetBytes(bytes); + return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue; +} } diff --git a/Tests/test_iTBar.cs b/Tests/test_iTBar.cs index 32ec7c37..83aac9b4 100644 --- a/Tests/test_iTBar.cs +++ b/Tests/test_iTBar.cs @@ -3,6 +3,8 @@ using System.Reflection; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; /// diff --git a/Tests/test_iTValue.cs b/Tests/test_iTValue.cs index 887c78cf..6c0a17e1 100644 --- a/Tests/test_iTValue.cs +++ b/Tests/test_iTValue.cs @@ -3,6 +3,8 @@ using System.Reflection; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; public class IndicatorTests diff --git a/Tests/test_skender.stock.cs b/Tests/test_skender.stock.cs index fd1fcca1..a936e08f 100644 --- a/Tests/test_skender.stock.cs +++ b/Tests/test_skender.stock.cs @@ -3,6 +3,8 @@ using Skender.Stock.Indicators; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; public class SkenderTests diff --git a/Tests/test_talib.cs b/Tests/test_talib.cs index b071a3a6..f88a2a36 100644 --- a/Tests/test_talib.cs +++ b/Tests/test_talib.cs @@ -3,6 +3,8 @@ using TALib; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; +#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781 + namespace QuanTAlib; public class TAlibTests