mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-07 02:58:02 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
72f982cc9d
commit
fb659f7a26
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue