mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 04:12:56 -04:00
Bootstrap OpenBitdo clean-room SDK and reliability milestone
This commit is contained in:
15
sdk/scripts/cleanroom_guard.sh
Executable file
15
sdk/scripts/cleanroom_guard.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
forbidden_pattern='decompiled(_dll|_autoupdate)?/|bundle_extract/|extracted(_net)?/|session-ses_35e4|8BitDo_Ultimate_Software_V2\.decompiled\.cs'
|
||||
scan_paths=(crates tests .github)
|
||||
|
||||
if rg -n --hidden -g '!target/**' "$forbidden_pattern" "${scan_paths[@]}"; then
|
||||
echo "cleanroom guard failed: forbidden dirty-room reference detected"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "cleanroom guard passed"
|
||||
Reference in New Issue
Block a user