Rust: support paths and paths-ignore from the code scanning configuration file

This is done by simply adding the autobuilder from the shared
tree-sitter extractor library.
This commit is contained in:
Paolo Tranquilli
2024-12-19 17:37:56 +01:00
parent 90dbc34c16
commit 73a5a3f7ee
48 changed files with 350 additions and 219 deletions

View File

@@ -1,5 +1,5 @@
@echo off
type NUL && "%CODEQL_DIST%\codeql.exe" database index-files --working-dir=. --language=rust --include-extension=.rs "%CODEQL_EXTRACTOR_RUST_WIP_DATABASE%"
type NUL && "%CODEQL_EXTRACTOR_RUST_ROOT%\tools\%CODEQL_PLATFORM%\autobuild"
exit /b %ERRORLEVEL%

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
set -eu
export RUST_BACKTRACE=1
exec "${CODEQL_DIST}/codeql" database index-files \
--working-dir=. --language=rust --include-extension=.rs \
"${CODEQL_EXTRACTOR_RUST_WIP_DATABASE}"
exec "$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/autobuild"