Files
QuanTAlib/.coderabbit/ast-grep-rules/no-random-in-tests.yaml
T
2026-01-18 22:23:50 -08:00

11 lines
414 B
YAML

# 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($$$)