fold/tests/benchmarks/rust/complexity.json
2026-07-27 23:18:03 -04:00

33 lines
874 B
JSON

{
"schema_version": 1,
"case_id": "rust-high-complexity",
"case_type": "positive-semantic",
"origin": "synthetic",
"backend": "rust",
"name": "rust_high_complexity",
"description": "Rust HIR complexity finding honors the shared threshold.",
"mode": "rust",
"paths": ["../../fixtures/rust/complexity_crate"],
"detectors": "complexity",
"scan_args": ["--complexity-threshold", "5"],
"skip_if_missing_tools": true,
"expect": {
"require_physical_location": true,
"require_backend": true,
"require_backends": ["rust"],
"min_total": 1,
"must_report": [
{
"ruleId": "fold.high-complexity",
"backend": "rust",
"messageRegex": "branchy.*complexity 6.*threshold 5"
}
],
"must_not_report": [
{
"ruleId": "fold.high-complexity",
"messageRegex": "linear"
}
]
}
}