Files
smom-dbis-138/scripts/automation/validate-scripts.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

45 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Validate all shell scripts locally (no git/network). Produces docs/SCRIPTS_QA_REPORT.md
set -u
ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
REPORT="$ROOT_DIR/docs/SCRIPTS_QA_REPORT.md"
mkdir -p "$ROOT_DIR/docs"
mapfile -t FILES < <(cd "$ROOT_DIR" && find scripts -type f -name '*.sh' | sort)
ok=0; fail=0
tmp=$(mktemp)
{
echo "# Scripts QA Report"
echo
echo "Generated: $(date -Iseconds)"
echo
echo "## Bash syntax check (bash -n)"
for f in "${FILES[@]}"; do
if bash -n "$f" 2>/dev/null; then
echo "- [OK] ${f#$ROOT_DIR/}"; ((ok++))
else
echo "- [FAIL] ${f#$ROOT_DIR/}"; ((fail++))
fi
done
echo
echo "Summary: $ok OK, $((ok+fail)) total"
if command -v shellcheck >/dev/null 2>&1; then
echo
echo "## ShellCheck summary"
for f in "${FILES[@]}"; do
shellcheck -f gcc "$f" || true
done | tee "$tmp"
echo
echo "- ShellCheck issues: $(wc -l < "$tmp") lines reported"
else
echo
echo "## ShellCheck"
echo "shellcheck not found; skipping. Install with: sudo apt-get install shellcheck"
fi
} > "$REPORT"
rm -f "$tmp"
echo "QA report written: $REPORT"