Taus
82bbdee832
yeast: Support separate output node types in extractor generator
...
Language and LanguageSpec gain optional output_node_types field.
When set, the generator produces dbscheme/QL from the output types
and the extractor validates TRAP against them.
All existing extractors pass None (no behavior change).
Ruby extract() calls gain vec![] for the new rules parameter.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-06 11:34:09 +00:00
Taus
9ad431dea1
yeast: Integrate yeast with shared tree-sitter extractor
...
extract() gains a rules parameter. When empty, uses tree-sitter native
traversal (no behavior change). When non-empty, runs yeast desugaring
and extracts via traverse_yeast.
Adds AstNode trait abstracting over tree_sitter::Node and yeast::Node,
with minimal changes to existing Visitor methods (Node -> &N in 6
signatures).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-06 11:34:09 +00:00
Ian Lynagh
51b1ea84d3
ql for ql: Fix formatting
2026-01-20 12:12:20 +00:00
Ian Lynagh
c6500e2759
tree-sitter: Add dbscheme regeneration instructions
2026-01-20 11:56:14 +00:00
Nick Rolfe
867826466e
Ruby/QL: unconditionally generate discard predicates
2025-06-25 15:35:58 +01:00
Nick Rolfe
1bd7c4f11c
Ruby: add databaseMetadata relation to dbscheme
...
This is required for overlay support.
2025-06-19 16:34:15 +01:00
Tom Hvitved
eb1b2a5594
Bump tree-sitter to 0.23.0
2024-09-04 09:47:59 +02:00
Tom Hvitved
d6a3765597
Tree-sitter: Allow for multiple file lists in simple extractor
2024-05-31 11:15:21 +02:00
Tom Hvitved
e4cd9d86f6
Tree-sitter: Respect verbosity defined in CODEQL_VERBOSITY
2024-05-23 13:38:35 +02:00
Harry Maclean
24ac6c0596
QL: Update for shared extractor changes
2023-08-23 14:11:21 +01:00
Arthur Baars
d2bc66e393
QL: switch to shared YAML extractor
2023-05-22 19:28:59 +02:00
Harry Maclean
9203efbdc4
Shared: Share autobuilder code between Ruby and QL
2023-05-05 07:20:14 +00:00
Harry Maclean
5688da145d
Shared: fix missing import
2023-04-27 07:13:59 +00:00
Harry Maclean
8a89aec220
Shared: Handle trap compression option properly
...
Extracting the compression setting from an environment variable is the
responsibility of the API consumer.
2023-04-27 05:06:57 +00:00
Harry Maclean
da9a49d6e4
QL: Use high level extractor API
2023-04-20 08:07:40 +07:00
Harry Maclean
2ef6d5c7b9
Ruby/QL: Remove unnecessary CLI config
2023-04-07 15:49:17 +08:00
Harry Maclean
eff4729577
QL: Merge extractor binaries into one
...
There is now one binary, codeql-ql-extractor, which takes a positional
argument specifying whether to extract, generate or autobuild.
2023-04-07 15:49:16 +08:00
Harry Maclean
8ffb81f63f
QL: Bump clap to 4.2
2023-04-06 08:19:58 +08:00
Harry Maclean
77ce6e7122
QL: Clippy fixes
2023-04-05 18:46:57 +08:00
Harry Maclean
b6c071a10b
Shared: Further consolidate generators
2023-04-05 18:46:57 +08:00
Harry Maclean
5335ec03b5
QL: Remove db generation functions
...
These now live in the shared extractor library.
2023-04-05 18:46:57 +08:00
Harry Maclean
8c60b6e657
QL: Merge extractor crates into one
...
This mirrors the structure we have in the Ruby extractor, and will allow
us to share more code.
2023-03-23 11:59:14 +13:00
Harry Maclean
6171eae7a2
QL: Use shared extractor library
2023-03-23 11:59:13 +13:00
Taus
bab53b5736
QL: Fix JSON extraction
...
I had forgotten about this extra filtering that takes place in the
extractor.
2023-02-21 19:50:27 +00:00
Taus
b5ebd1a0fd
QL: Add JSON (+C/L) extraction
2023-02-21 12:59:30 +00:00
Taus
db748fae6b
QL: Integrate blame parser into extractor
2023-02-17 13:22:18 +00:00
Josh Soref
7055b139bf
spelling: the
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2022-10-19 04:22:34 -04:00
Taus
41003231b0
QL: Actually match qlpack.yml files
2022-08-11 12:31:52 +02:00
Taus
66a191e4b5
QL: Update extractor
2022-08-11 12:31:52 +02:00
Nick Rolfe
4767d5a1ba
Ruby/QL: speed up trap writing by putting BufWriter in front of GzEncoder
2022-07-22 15:37:53 +01:00
Nick Rolfe
5f96c92fac
QL: sync Ruby extractor changes
2022-07-21 17:38:33 +01:00
Nick Rolfe
3ee109731a
QL for QL: sync changes from Ruby
...
In particular, update the dbscheme to put location columns in a single
table.
2022-02-07 17:44:40 +00:00
Erik Krogh Kristensen
31c8e4ed2a
QL: Fix the autobuilder (temporary bad fix)
2021-12-17 20:23:02 +01:00
Erik Krogh Kristensen
d06ac78e4d
QL: move files and folder, except dotfiles, into a ql subfolder
2021-12-14 14:34:53 +01:00