Ruby: Unified handling of in-tree extractor packs.

This commit is contained in:
Cornelius Riemenschneider
2024-06-03 16:06:24 +02:00
parent 7b72018e56
commit 5c77b8708c
4 changed files with 5 additions and 6 deletions

View File

@@ -65,4 +65,4 @@ extractor: $(FILES) $(BIN_FILES)
cp extractor/target/release/codeql-extractor-ruby$(EXE) extractor-pack/tools/$(CODEQL_PLATFORM)/extractor$(EXE)
test: extractor dbscheme
codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path extractor-pack --consistency-queries ql/consistency-queries ql/test
codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test

View File

@@ -31,7 +31,7 @@ First, get an extractor pack. There are two options:
Then run
```bash
codeql database create <database-path> -l ruby -s <project-source-path> --search-path <extractor-pack-path>
codeql database create <database-path> -l ruby -s <project-source-path>
```
## Running qltests
@@ -39,7 +39,7 @@ codeql database create <database-path> -l ruby -s <project-source-path> --search
Run
```bash
codeql test run <test-path> --search-path <extractor-pack-path>
codeql test run <test-path>
```
## Writing database upgrade scripts