brick/scripts/quality-gate.sh
trvon 40bea78f9a
Some checks failed
build / build-linux (push) Has been cancelled
build / build-macos (push) Has been cancelled
build / release (push) Has been cancelled
fix(cpp): recover receivers from local initialization
Recover parenthesized object declarations only when their apparent parameters resolve to earlier visible value bindings. Respect recovered scope, alias hiding and prototype shadowing instead of manufacturing receiver types.

Preserve heuristic confidence and source provenance. Add positive and negative regressions plus a three-repeat labeled initialization fixture to the quality gate.

Validation: cargo fmt --check and ./scripts/quality-gate.sh passed.
2026-10-11 18:19:08 -06:00

19 lines
805 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cargo fmt --check
cargo test
cargo clippy --all-targets -- -D warnings
cargo test --features tree-sitter-p4-pilot
cargo clippy --all-targets --features tree-sitter-p4-pilot -- -D warnings
python3 -m unittest discover -s tests -p 'test_*.py'
python3 -m unittest discover -s tests/benchmarks -p 'test_*.py'
python3 tests/benchmarks/runner.py self-test
python3 tests/benchmarks/runner.py run source_languages
python3 tests/benchmarks/runner.py run rust_imports
python3 tests/benchmarks/runner.py run cpp_xtu
python3 tests/benchmarks/runner.py run cpp_initialization
python3 tests/benchmarks/runner.py run rust_methods
python3 tests/benchmarks/diff_runner.py self-test
python3 tests/benchmarks/policy_runner.py self-test
python3 tests/benchmarks/mcp_runner.py self-test