You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Install Rust](https://www.rust-lang.org/tools/install), then run:
57
-
58
-
```bash
59
-
cargo build --release
60
-
```
61
-
62
-
## Generating the database schema and QL library
63
-
64
-
The generated `ql/lib/ruby.dbscheme` and `ql/lib/codeql/ruby/ast/internal/TreeSitter.qll` files are included in the repository, but they can be re-generated as follows:
65
-
66
-
```bash
67
-
# Run the generator
68
-
cargo run --release -p ruby-generator -- --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
69
-
# Then auto-format the QL library
70
-
codeql query format -i ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
71
-
```
72
-
73
-
## Building a CodeQL database for a Ruby program
74
-
75
-
First, get an extractor pack. There are two options:
76
-
77
-
1. Either download the latest `codeql-ruby-pack` from Actions and unzip it twice, or
78
-
2. Run `scripts/create-extractor-pack.sh` (Linux/Mac) or `scripts\create-extractor-pack.ps1` (Windows PowerShell) and the pack will be created in the `extractor-pack` directory.
This document contains information about common development tasks.
4
+
5
+
## Building the tools from source
6
+
7
+
[Install Rust](https://www.rust-lang.org/tools/install), then run:
8
+
9
+
```bash
10
+
cargo build --release
11
+
```
12
+
13
+
## Generating the database schema and QL library
14
+
15
+
The generated `ql/lib/ruby.dbscheme` and `ql/lib/codeql/ruby/ast/internal/TreeSitter.qll` files are included in the repository, but they can be re-generated as follows:
16
+
17
+
```bash
18
+
# Run the generator
19
+
cargo run --release -p ruby-generator -- --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
20
+
# Then auto-format the QL library
21
+
codeql query format -i ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
22
+
```
23
+
24
+
## Building a CodeQL database for a Ruby program
25
+
26
+
First, get an extractor pack. There are two options:
27
+
28
+
1. Either download the latest `codeql-ruby-pack` from Actions and unzip it twice, or
29
+
2. Run `scripts/create-extractor-pack.sh` (Linux/Mac) or `scripts\create-extractor-pack.ps1` (Windows PowerShell) and the pack will be created in the `extractor-pack` directory.
0 commit comments