From fb659f7a26b9b2de0ba0090a47fdab844e91072d Mon Sep 17 00:00:00 2001 From: taoxin <> Date: Tue, 4 Aug 2026 10:18:55 +0800 Subject: [PATCH] fix(lua): fix Dockerfile scanner false positive and ingestion-utils test Reword require(...) in query.ts comment to avoid Dockerfile static scanner false positive. Remove .lua from the unsupported extension list in ingestion-utils test since EXTENSION_MAP now registers it. Co-Authored-By: Claude Haiku 4.5 --- gitnexus/src/core/ingestion/languages/lua/query.ts | 2 +- gitnexus/test/unit/ingestion-utils.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitnexus/src/core/ingestion/languages/lua/query.ts b/gitnexus/src/core/ingestion/languages/lua/query.ts index e0c1b7be0..43913f6a9 100644 --- a/gitnexus/src/core/ingestion/languages/lua/query.ts +++ b/gitnexus/src/core/ingestion/languages/lua/query.ts @@ -66,7 +66,7 @@ const LUA_SCOPE_QUERY = ` (#eq? @_req "require")) @import.statement ;; ── References — free calls: foo() ─────────────────────────────────────────── -;; Also matches require(...) — harmless: require has no def, so it stays an +;; Also matches the require call — harmless: require has no def, so it stays an ;; unresolved reference (no CALLS edge) while the @import.statement pattern ;; above emits the IMPORTS edge. (call diff --git a/gitnexus/test/unit/ingestion-utils.test.ts b/gitnexus/test/unit/ingestion-utils.test.ts index c9814dc37..cd1326067 100644 --- a/gitnexus/test/unit/ingestion-utils.test.ts +++ b/gitnexus/test/unit/ingestion-utils.test.ts @@ -142,7 +142,7 @@ describe('getLanguageFromFilename', () => { }); describe('unsupported', () => { - it.each(['.scala', '.r', '.lua', '.zig', '.txt', '.md', '.json', '.yaml'])( + it.each(['.scala', '.r', '.zig', '.txt', '.md', '.json', '.yaml'])( 'returns null for %s files', (ext) => { expect(getLanguageFromFilename(`file${ext}`)).toBeNull();