Skip to content

fix(config): validate languages from canonical list#233

Open
kietdev27 wants to merge 1 commit into
colbymchenry:mainfrom
kietsocola:fix/config-language-validation
Open

fix(config): validate languages from canonical list#233
kietdev27 wants to merge 1 commit into
colbymchenry:mainfrom
kietsocola:fix/config-language-validation

Conversation

@kietdev27
Copy link
Copy Markdown

@kietdev27 kietdev27 commented May 21, 2026

Summary

  • Validate config.languages against the canonical LANGUAGES list from src/types.ts
  • Remove the stale hard-coded language allowlist in src/config.ts
  • Add regression coverage for supported languages that were previously rejected

Why

validateConfig() only allowed a small older subset of languages. Supported languages such as php, tsx, vue, liquid, pascal, and scala could be rejected even though they are valid CodeGraph languages.

Test plan

  • npx vitest run __tests__/foundation.test.ts
  • npm run build
  • npx vitest run __tests__/foundation.test.ts __tests__/search-query-parser.test.ts __tests__/extraction.test.ts -t "supported languages|Configuration|parseQuery"

Note: npm test full suite was attempted on Windows/Node v24.14.1 but failed in unrelated installer/MCP temp cleanup tests and ended with a V8 OOM worker crash.

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