mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
feat: streamline release workflow and remove unnecessary warnings in test files
This commit is contained in:
@@ -11,7 +11,6 @@ namespace QuanTAlib;
|
||||
/// </summary>
|
||||
[SkipLocalsInit]
|
||||
#pragma warning disable S101 // Rename class 'GBM' to match pascal case naming rules
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public sealed class GBM : IFeed
|
||||
#pragma warning restore S101
|
||||
{
|
||||
@@ -406,4 +405,3 @@ public sealed class GBM : IFeed
|
||||
_lastTime = currentTime - timeStep; // Last bar time, not next bar time
|
||||
}
|
||||
}
|
||||
#pragma warning restore S2245
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class BesselTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class SsfTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class PwmaTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class SmaTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class DemaTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // GBM provides deterministic random walks for testing; System.Random usage is controlled
|
||||
public class EmaTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace QuanTAlib.Tests;
|
||||
|
||||
#pragma warning disable S2245 // Random is acceptable for simulation/testing purposes
|
||||
public class RmaTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user