chore: repo cleanup and code quality improvements

- Remove global.json (SDK pinning unnecessary)

- Remove nuget.config, move MyGet source to .csproj RestoreAdditionalProjectSources

- Gitignore ndepend/ entirely, move badges to docs/img/

- Update README.md and docs/ndepend.md badge paths

- Add NDepend project property to QuanTAlib.slnx

- Expand .editorconfig ReSharper/diagnostic suppressions

- Use ArgumentOutOfRangeException instead of ArgumentException

- Use discard _ for unused event sender parameters

- Remove quantalib.code-workspace and sonar-suppressions.json

- Add filter signature SVGs
This commit is contained in:
Miha Kralj
2026-03-03 09:22:55 -08:00
parent e1a6743bda
commit 1910fdca93
131 changed files with 216046 additions and 2027 deletions
-6
View File
@@ -41,16 +41,10 @@ public sealed class Twap : ITValuePublisher
private State _s;
private State _ps;
/// <inheritdoc/>
public TValue Last { get; private set; }
/// <inheritdoc/>
public bool IsHot { get; private set; }
/// <inheritdoc/>
public static int WarmupPeriod => 1;
/// <inheritdoc/>
public string Name { get; }
/// <inheritdoc/>
public event TValuePublishedHandler? Pub;
/// <summary>
-6
View File
@@ -37,16 +37,10 @@ public sealed class Va : ITValuePublisher
private State _s;
private State _ps;
/// <inheritdoc/>
public TValue Last { get; private set; }
/// <inheritdoc/>
public bool IsHot => _s.Index >= 1;
/// <inheritdoc/>
public static int WarmupPeriod => 1;
/// <inheritdoc/>
public string Name { get; }
/// <inheritdoc/>
public event TValuePublishedHandler? Pub;
/// <summary>
+1 -1
View File
@@ -110,7 +110,7 @@ public class VfValidationTests
vfHigh.Update(bar2High, isNew: true);
// Higher volume should produce larger absolute VF
Assert.True(System.Math.Abs(vfHigh.Last.Value) > System.Math.Abs(vfLow.Last.Value),
Assert.True(Math.Abs(vfHigh.Last.Value) > Math.Abs(vfLow.Last.Value),
$"High volume VF ({vfHigh.Last.Value}) should exceed low volume VF ({vfLow.Last.Value})");
}
-6
View File
@@ -36,16 +36,10 @@ public sealed class Vf : ITValuePublisher
private State _ps;
private readonly int _period;
private readonly double _alpha;
/// <inheritdoc/>
public TValue Last { get; private set; }
/// <inheritdoc/>
public bool IsHot => _s.Index >= _period;
/// <inheritdoc/>
public int WarmupPeriod => _period;
/// <inheritdoc/>
public string Name { get; }
/// <inheritdoc/>
public event TValuePublishedHandler? Pub;
/// <summary>
-6
View File
@@ -47,18 +47,12 @@ public sealed class Vo : ITValuePublisher
private double[]? _pBufferShort;
private double[]? _pBufferLong;
private double[]? _pBufferSignal;
/// <inheritdoc/>
public TValue Last { get; private set; }
/// <summary>Gets the current signal line value.</summary>
public double Signal => _s.SignalValue;
/// <inheritdoc/>
public bool IsHot => _s.Index >= _longPeriod;
/// <inheritdoc/>
public int WarmupPeriod => _longPeriod;
/// <inheritdoc/>
public string Name { get; }
/// <inheritdoc/>
public event TValuePublishedHandler? Pub;
/// <summary>
-6
View File
@@ -34,16 +34,10 @@ public sealed class Vroc : ITValuePublisher
private readonly bool _usePercent;
private readonly double[] _buffer;
private double[]? _pBuffer;
/// <inheritdoc/>
public TValue Last { get; private set; }
/// <inheritdoc/>
public bool IsHot => _s.Index > _period;
/// <inheritdoc/>
public int WarmupPeriod => _period + 1;
/// <inheritdoc/>
public string Name { get; }
/// <inheritdoc/>
public event TValuePublishedHandler? Pub;
/// <summary>