Skip to content

Commit e46d2a4

Browse files
committed
feat: expand KNOWN_RUNTIMES allowlist in dependency checker
Add common non-package terms that appear in stack documentation: - Languages: Swift, Kotlin, Elixir, PHP, .NET/C# - Databases: DynamoDB, Cassandra, Neo4j, Supabase, Neon - Cloud: Vercel, Netlify, Railway, AWS services (S3, EC2, Lambda) - Protocols: REST, GraphQL, gRPC, WebSocket, OAuth, JWT - CSS/Build: Tailwind, Bootstrap, Webpack, Vite, esbuild - Infra: Git, GitHub, Nginx, Linux, WASM Prevents false DEPENDENCY_MISSING warnings for these terms. Fixes #2
1 parent 7f90258 commit e46d2a4

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

src/drift/checkers/dependency.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { readFileSync, existsSync } from "node:fs";
22
import { resolve } from "node:path";
33
import type { Claim, DriftIssue } from "../../types.js";
44

5-
/** Runtimes, platforms, and databases that appear in stack docs but aren't installable packages */
5+
/** Runtimes, platforms, databases, protocols, and architectural terms that appear in stack docs but aren't installable packages */
66
const KNOWN_RUNTIMES = new Set([
77
"node.js", "node", "nodejs",
88
"python", "cpython",
@@ -11,14 +11,28 @@ const KNOWN_RUNTIMES = new Set([
1111
"ruby",
1212
"java", "jdk", "jre",
1313
"deno", "bun",
14+
"swift", "kotlin", "elixir", "erlang", "php",
15+
".net", "dotnet", "c#", "csharp",
1416
"sqlite", "sqlite3",
1517
"postgresql", "postgres",
1618
"mysql", "mariadb",
1719
"mongodb", "mongo",
1820
"redis",
1921
"elasticsearch",
22+
"dynamodb", "cassandra", "neo4j", "supabase", "neon",
2023
"docker",
2124
"kubernetes", "k8s",
25+
"vercel", "netlify", "railway", "fly.io", "render",
26+
"aws", "gcp", "azure", "cloudflare",
27+
"s3", "ec2", "lambda", "ecs", "fargate",
28+
"rest", "rest api", "graphql", "grpc", "websocket", "websockets",
29+
"oauth", "oauth2", "jwt", "saml", "oidc",
30+
"http", "https", "tcp", "udp",
31+
"tailwind", "tailwind css", "tailwindcss",
32+
"bootstrap", "sass", "less", "postcss",
33+
"webpack", "vite", "esbuild", "turbopack", "rollup", "parcel",
34+
"git", "github", "gitlab", "ci/cd", "nginx", "apache", "caddy",
35+
"linux", "macos", "windows", "wasm", "webassembly",
2236
]);
2337

2438
/** Check that claimed dependencies exist in manifests */

0 commit comments

Comments
 (0)