From 41e6bddc2c3248003fc5bde2315ffc53c8f1602e Mon Sep 17 00:00:00 2001 From: Luke Cartey Date: Tue, 25 Mar 2025 17:23:15 +0000 Subject: [PATCH] Add support for indexing UI5 XML views --- extractors/javascript/tools/pre-finalize.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/extractors/javascript/tools/pre-finalize.sh b/extractors/javascript/tools/pre-finalize.sh index d59d706da..1127def87 100755 --- a/extractors/javascript/tools/pre-finalize.sh +++ b/extractors/javascript/tools/pre-finalize.sh @@ -14,4 +14,20 @@ if [ -z "${CODEQL_EXTRACTOR_CDS_SKIP_EXTRACTION:-}" ]; then --total-size-limit=10m \ -- \ "$CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE" -fi \ No newline at end of file +fi + +# Index UI5 *.view.xml files +"${CODEQL_DIST}/codeql" database index-files \ + --include-extension=.view.xml \ + --language xml \ + --prune **/node_modules/**/* \ + --prune **/.eslint/**/* \ + --total-size-limit=10m \ + -- \ + "$CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE" + +# UI5 also requires *.view.json files and *.view.html files be indexed, but these are indexed by +# default by CodeQL. + +# XSJS also requires indexing of *.xsaccess files, *.xsjs files and xs-app.json files, but these +# are indexed by default by CodeQL. \ No newline at end of file