mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-13 03:58:33 +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
2d6f0d5c47
commit
f9ff3619d0
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
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ describe('getLanguageFromFilename', () => {
|
|||
});
|
||||
|
||||
describe('unsupported', () => {
|
||||
it.each(['.scala', '.r', '.lua', '.txt', '.md', '.json', '.yaml'])(
|
||||
it.each(['.scala', '.r', '.txt', '.md', '.json', '.yaml'])(
|
||||
'returns null for %s files',
|
||||
(ext) => {
|
||||
expect(getLanguageFromFilename(`file${ext}`)).toBeNull();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue