feat(v-ecosystem): expand final 4 connector stubs — ptp, smb, decepti… #270
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| # RSR Anti-Pattern CI Check | |
| # | |
| # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm | |
| # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme | |
| name: RSR Anti-Pattern Check | |
| on: | |
| push: | |
| branches: [main, master, develop] | |
| pull_request: | |
| branches: [main, master, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| antipattern-check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Check for TypeScript | |
| run: | | |
| # Excluded paths (legitimate TS usage or pending conversion): | |
| # bindings/deno/ - Deno FFI files using Deno.dlopen | |
| # .d.ts - TypeScript type declarations for ReScript FFI | |
| # gentype_tests/ - ReScript genType test cases (test TS generation) | |
| # templates/deno-fresh/ - Deno Fresh framework templates (TS required) | |
| # cadre-router/ - Deno module entry points (re-export ReScript JS) | |
| # compiler-source/ - Upstream ReScript compiler (third-party) | |
| # wasm-runtime/ - WASM FFI tests/benchmarks (Deno TS, pending conversion) | |
| # runtime-tools/ - Runtime detection CLI (Deno TS, pending conversion) | |
| # aggregate-library/ - Conformance test tooling (Deno TS, pending conversion) | |
| # coq-ecosystem/ - Coq tooling server (Deno TS, pending conversion) | |
| # dom-mounter/ - DOM test harness (Deno TS, pending conversion) | |
| # bindings/redis/ - Redis test harness (Deno TS, pending conversion) | |
| TS_FILES=$(find . \( -name "*.ts" -o -name "*.tsx" \) \ | |
| | grep -v node_modules \ | |
| | grep -v 'bindings/deno' \ | |
| | grep -v '\.d\.ts$' \ | |
| | grep -v 'gentype_tests' \ | |
| | grep -v 'templates/deno-fresh' \ | |
| | grep -v 'cadre-router' \ | |
| | grep -v 'compiler-source' \ | |
| | grep -v 'wasm-runtime' \ | |
| | grep -v 'runtime-tools' \ | |
| | grep -v 'aggregate-library' \ | |
| | grep -v 'coq-ecosystem' \ | |
| | grep -v 'dom-mounter' \ | |
| | grep -v 'bindings/redis' \ | |
| || true) | |
| if [ -n "$TS_FILES" ]; then | |
| echo "❌ TypeScript files detected - use ReScript instead" | |
| echo "$TS_FILES" | |
| exit 1 | |
| fi | |
| echo "✅ No TypeScript files (allowed exceptions excluded)" | |
| - name: Check for Go | |
| run: | | |
| if find . -name "*.go" | grep -q .; then | |
| echo "❌ Go files detected - use Rust/WASM instead" | |
| find . -name "*.go" | |
| exit 1 | |
| fi | |
| echo "✅ No Go files" | |
| - name: Check for Python (non-SaltStack) | |
| run: | | |
| PY_FILES=$(find . -name "*.py" | grep -v salt | grep -v _states | grep -v _modules | grep -v pillar | grep -v venv | grep -v __pycache__ || true) | |
| if [ -n "$PY_FILES" ]; then | |
| echo "❌ Python files detected - only allowed for SaltStack" | |
| echo "$PY_FILES" | |
| exit 1 | |
| fi | |
| echo "✅ No non-SaltStack Python files" | |
| - name: Check for npm lockfiles | |
| run: | | |
| if [ -f "package-lock.json" ] || [ -f "yarn.lock" ]; then | |
| echo "❌ npm/yarn lockfile detected - use Deno instead" | |
| exit 1 | |
| fi | |
| echo "✅ No npm lockfiles" | |
| - name: Check for tsconfig | |
| run: | | |
| if [ -f "tsconfig.json" ]; then | |
| echo "❌ tsconfig.json detected - use ReScript instead" | |
| exit 1 | |
| fi | |
| echo "✅ No tsconfig.json" | |
| - name: Verify Deno presence (if package.json exists) | |
| run: | | |
| if [ -f "package.json" ]; then | |
| if [ ! -f "deno.json" ] && [ ! -f "deno.jsonc" ]; then | |
| echo "⚠️ Warning: package.json without deno.json - migration recommended" | |
| fi | |
| fi | |
| echo "✅ Deno configuration check complete" | |
| - name: Summary | |
| run: | | |
| echo "╔════════════════════════════════════════════════════════════╗" | |
| echo "║ RSR Anti-Pattern Check Passed ✅ ║" | |
| echo "║ ║" | |
| echo "║ Allowed: ReScript, Deno, WASM, Rust, OCaml, Haskell, ║" | |
| echo "║ Guile/Scheme, SaltStack (Python) ║" | |
| echo "║ ║" | |
| echo "║ Blocked: TypeScript, Go, npm, Python (non-Salt) ║" | |
| echo "╚════════════════════════════════════════════════════════════╝" |