Skip to content

Commit 6022f8a

Browse files
committed
Update pre-finalize.cmd script for Windows
1 parent 7206e15 commit 6022f8a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

extractors/javascript/tools/pre-finalize.cmd

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@echo off
22

33
if not defined CODEQL_EXTRACTOR_CDS_SKIP_EXTRACTION (
4+
echo Running database index-files for CDS (.cds) files ...
5+
46
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
57
--include-extension=.cds ^
68
--language cds ^
@@ -9,6 +11,28 @@ if not defined CODEQL_EXTRACTOR_CDS_SKIP_EXTRACTION (
911
--total-size-limit=10m ^
1012
-- ^
1113
"%CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE%"
14+
15+
echo Finished running database index-files for CDS (.cds) files.
1216
)
1317

18+
echo Running database index-files for UI5 (.view.xml and .fragment.xml) files ...
19+
20+
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
21+
--include-extension=.view.xml ^
22+
--include-extension=.fragment.xml ^
23+
--language xml ^
24+
--prune **\node_modules\**\* ^
25+
--prune **\.eslint\**\* ^
26+
--total-size-limit=10m ^
27+
-- ^
28+
"%CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE%"
29+
30+
echo Finished running database index-files for UI5 (.view.xml and .fragment.xml) files.
31+
32+
REM UI5 also requires *.view.json files and *.view.html files be indexed, but these are indexed by
33+
REM default by CodeQL.
34+
35+
REM XSJS also requires indexing of *.xsaccess files, *.xsjs files and xs-app.json files, but these
36+
REM are indexed by default by CodeQL.
37+
1438
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)