-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpre-finalize.cmd
More file actions
38 lines (29 loc) · 1.24 KB
/
pre-finalize.cmd
File metadata and controls
38 lines (29 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
if not defined CODEQL_EXTRACTOR_CDS_SKIP_EXTRACTION (
echo Running database index-files for CDS (.cds) files ...
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
--include-extension=.cds ^
--language cds ^
--prune **\node_modules\**\* ^
--prune **\.eslint\**\* ^
--total-size-limit=10m ^
-- ^
"%CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE%"
echo Finished running database index-files for CDS (.cds) files.
)
echo Running database index-files for UI5 (.view.xml and .fragment.xml) files ...
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
--include-extension=.view.xml ^
--include-extension=.fragment.xml ^
--language xml ^
--prune **\node_modules\**\* ^
--prune **\.eslint\**\* ^
--total-size-limit=10m ^
-- ^
"%CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE%"
echo Finished running database index-files for UI5 (.view.xml and .fragment.xml) files.
REM UI5 also requires *.view.json files and *.view.html files be indexed, but these are indexed by
REM default by CodeQL.
REM XSJS also requires indexing of *.xsaccess files, *.xsjs files and xs-app.json files, but these
REM are indexed by default by CodeQL.
exit /b %ERRORLEVEL%