feat(llm-security): add .kt .groovy .scala to taint-tracer CODE_EXTENSIONS

This commit is contained in:
Kjell Tore Guttormsen 2026-04-18 10:04:32 +02:00
commit 50c0cd3065
2 changed files with 84 additions and 0 deletions

View file

@ -22,6 +22,8 @@ import { SEVERITY } from './lib/severity.mjs';
// ---------------------------------------------------------------------------
// File extension filter — only scan code files, not config/docs
// JVM-language support (.kt, .kts, .groovy, .gradle, .scala) is required for
// JetBrains plugin scanning — plugin source lives in these languages.
// ---------------------------------------------------------------------------
const CODE_EXTENSIONS = new Set([
@ -32,6 +34,9 @@ const CODE_EXTENSIONS = new Set([
'.rb', '.php',
'.go', '.rs',
'.java', '.cs',
'.kt', '.kts',
'.groovy', '.gradle',
'.scala',
'.sh', '.bash', '.zsh',
]);