Skip to content

ci(antipattern): allowlist legit TS bridge/adapter paths#24

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/antipattern-allowlist-bridges
May 3, 2026
Merged

ci(antipattern): allowlist legit TS bridge/adapter paths#24
hyperpolymath merged 1 commit into
mainfrom
ci/antipattern-allowlist-bridges

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Fixes the antipattern-check CI failure that has been firing on every PR.

Cause: stapeln's own MCP adapter (container-stack/vordr/src/mcp-adapter/) is implemented in Deno/TS because the MCP protocol is TS-typed by spec — but the antipattern check only excluded bindings/deno/, not other legitimate bridge paths.

Fix: broaden the allowlist to cover all bridge/adapter conventions:

  • bindings/ (was bindings/deno — also covers bindings/typescript, bindings/assemblyscript)
  • tests/, test/ — Deno test runners
  • scripts/ — Deno build scripts
  • mcp-adapter/ — MCP server adapters
  • editors/vscode/ — VSCode extensions

Hard-stop on plain TypeScript application code outside these paths is preserved.

Local dry-run on stapeln after the change: 0 TS files flagged (was 8).

Adds tests/, test/, scripts/, mcp-adapter/, editors/vscode/, and broadens
bindings/deno → bindings/ (covering bindings/typescript and
bindings/assemblyscript too).

The previous check failed on stapeln's own MCP adapter (vordr's HTTP-MCP
server is Deno/TS by MCP spec) and Deno test runners. These are
bridge/adapter code into non-ReScript ecosystems, structurally analogous
to bindings/deno which was already excluded.

The hard-stop on plain TypeScript application code outside these paths
is preserved.
@hyperpolymath hyperpolymath merged commit 19fdf5f into main May 3, 2026
20 of 23 checks passed
@hyperpolymath hyperpolymath deleted the ci/antipattern-allowlist-bridges branch May 3, 2026 15:07
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant