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