mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 19:18:05 +00:00
code reviews
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# QuanTAlib: Forbid System.Random in tests - use GBM helper instead
|
||||
# DCT rule: Tests MUST use GBM helper, never System.Random
|
||||
|
||||
id: no-random-in-tests
|
||||
language: csharp
|
||||
severity: error
|
||||
message: "Use GBM helper instead of System.Random in tests - ensures reproducible test data"
|
||||
note: "GBM (Geometric Brownian Motion) provides consistent, realistic price data for indicator testing"
|
||||
rule:
|
||||
pattern: new Random($$$)
|
||||
Reference in New Issue
Block a user