mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Ruby: Update build instructions for new extractor
This commit is contained in:
@@ -7,7 +7,7 @@ This document contains information about common development tasks.
|
|||||||
[Install Rust](https://www.rust-lang.org/tools/install), then run:
|
[Install Rust](https://www.rust-lang.org/tools/install), then run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo build --release
|
(cd extractor && cargo build --release)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Generating the database schema and QL library
|
## Generating the database schema and QL library
|
||||||
@@ -16,7 +16,7 @@ The generated `ql/lib/ruby.dbscheme` and `ql/lib/codeql/ruby/ast/internal/TreeSi
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run the generator
|
# Run the generator
|
||||||
cargo run --release -p ruby-generator -- --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
|
(cd extractor && cargo run --release --bin generator -- --dbscheme ../ql/lib/ruby.dbscheme --library ../ql/lib/codeql/ruby/ast/internal/TreeSitter.qll)
|
||||||
# Then auto-format the QL library
|
# Then auto-format the QL library
|
||||||
codeql query format -i ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
|
codeql query format -i ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user