Nick Rolfe
867826466e
Ruby/QL: unconditionally generate discard predicates
2025-06-25 15:35:58 +01:00
Nick Rolfe
a9ddf0026b
Ruby: generate overlay discard predicates
2025-06-25 11:47:27 +01:00
Nick Rolfe
45f089fda0
Ruby: skip non-existent files in overlay changes JSON
...
The previous implementation returned None if any of the paths in the
changes JSON couldn't be canonicalized. This could happen for files that
were deleted in the diff. Now, it just ignores paths for which
canonicalize() fails.
2025-06-23 13:53:18 +01:00
Nick Rolfe
665df4baef
Ruby: add minimal path transformer support
...
Supports only a minimal subset of the project layout specification;
enough to work with the transformers produced by the CLI when building
an overlay database.
2025-06-19 16:34:16 +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
Nick Rolfe
c4ccc5502d
Ruby: add support for extracting overlays
2025-06-19 16:34:14 +01:00
Paolo Tranquilli
1bcc6ddb32
Rust/Ruby/Python: apply clippy lints
2025-02-25 13:21:28 +01:00
Tom Hvitved
eb1b2a5594
Bump tree-sitter to 0.23.0
2024-09-04 09:47:59 +02:00
Tom Hvitved
beeae69845
Tree-sitter: Verbosity fixes
2024-05-31 20:10:19 +02:00
Tom Hvitved
e4cd9d86f6
Tree-sitter: Respect verbosity defined in CODEQL_VERBOSITY
2024-05-23 13:38:35 +02:00
Tom Hvitved
bf2ae9890f
Tree-sitter: Bump to 0.22.6
2024-05-21 11:14:06 +02:00
Harry Maclean
9203efbdc4
Shared: Share autobuilder code between Ruby and QL
2023-05-05 07:20:14 +00:00
Harry Maclean
8691845d23
Ruby: Re-add test
...
This got lost in an earlier refactor.
2023-04-07 15:50:48 +08:00
Harry Maclean
2ef6d5c7b9
Ruby/QL: Remove unnecessary CLI config
2023-04-07 15:49:17 +08:00
Harry Maclean
79089b40b9
Ruby: Merge extractor binaries into one
...
There is now one binary, codeql-ruby-extractor, which takes a positional
argument specifying whether to extract, generate or autobuild.
2023-04-07 12:04:02 +08:00
Harry Maclean
d8a2ba9e00
Ruby: Bump clap to 4.2
2023-04-06 07:56:10 +08:00
Harry Maclean
109ca0dc20
Ruby: 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
c4bee299e5
Ruby: Remove db generation functions
...
These now live in the shared extractor library.
2023-04-05 18:46:56 +08:00
Harry Maclean
30eacd03d8
Ruby: Whitespace change to bust extractor cache
2023-03-24 15:04:10 +13:00
Harry Maclean
c90299baee
Ruby: Move codeql_threads calculation to library
2023-03-23 11:58:19 +13:00
Harry Maclean
c4a7389873
Ruby: Move extractor into shared crate
...
This makes it possible for different languages to share this extractor.
2023-03-23 11:58:18 +13:00
Harry Maclean
0eb0c26b72
Ruby: Add some documentation
...
This is primarily to bust the build cache.
2023-03-16 12:24:47 +13:00
Arthur Baars
fe34ec1378
Ruby: fix formatting errors
2023-03-15 13:45:06 +01:00
Henry Mercer
5de0eae992
Ruby: Update diagnostic source names for consistency
2023-03-15 12:05:09 +00:00
Henry Mercer
0de4259bff
Revert "Ruby: Use rb prefix in diagnostic IDs for consistency with queries"
...
This reverts commit a6509c7a37 .
2023-03-15 12:00:47 +00:00
Arthur Baars
fbe9823a42
Merge branch 'main' into henrymercer/polish-diagnostics
2023-03-14 23:42:33 +01:00
Harry Maclean
6dcc884fe1
Ruby: Small doc change
...
This is primarily to bust the actions cache, to test a change in the
ruby-build workflow.
2023-03-15 08:42:24 +13:00
Henry Mercer
a6509c7a37
Ruby: Use rb prefix in diagnostic IDs for consistency with queries
2023-03-14 17:13:50 +00:00
Henry Mercer
769f9051af
Ruby: Serialize severities as lowercase
2023-03-14 17:09:25 +00:00
Harry Maclean
999b12f78b
Ruby: better errors in generator
...
Provide more context if a file cannot be opened by the generator.
2023-03-14 18:12:01 +13:00
Harry Maclean
f3272239bd
Ruby: Format rust files
2023-03-14 12:31:50 +13:00
Harry Maclean
194edd76e5
Ruby: Put all binaries in same directory
2023-03-14 12:03:46 +13:00
Harry Maclean
f53c31398c
Ruby: Fix imports in extractor
2023-03-14 12:02:11 +13:00
Harry Maclean
15bd825805
Ruby: finish reorganising extractor files
2023-03-14 11:49:18 +13:00
Harry Maclean
6f23111320
Ruby: Remove old Cargo.toml files
2023-03-14 11:47:21 +13:00
Harry Maclean
983b84276b
Ruby: Lift extractor binaries
2023-03-14 11:45:46 +13:00
Harry Maclean
1a71c3f174
Ruby: Merge extractor crates
...
This just moves the files, so as not to confuse git when we make changes
to them.
2023-03-14 11:43:17 +13:00
Arthur Baars
41a53ec109
Address comments
2023-03-13 11:50:03 +01:00
Arthur Baars
c67bfff33b
Ruby: strip \\?\ from display paths
2023-03-10 22:32:11 +01:00
Arthur Baars
4bfcc31ef0
Ruby: support long paths on Windows
2023-03-10 22:32:11 +01:00
Nick Rolfe
7649772935
Expose TRAP compression option via the new extractor options feature.
2023-03-10 19:09:51 +13:00
Arthur Baars
c98e0fa0b4
Ruby: fix comment
2023-03-09 13:14:57 +01:00
Arthur Baars
8096f86224
Ruby: lower severity of parse error to warning
2023-03-09 13:14:57 +01:00
Arthur Baars
2d6f3ed6c2
Address comments
2023-03-08 13:10:03 +01:00
Arthur Baars
858aa9ae63
Ruby: add some links to diagnostic messages
2023-03-07 17:55:13 +01:00
Arthur Baars
78a802359e
Remove references to 'ruby' in generic extractor code
2023-03-07 13:38:48 +01:00
Arthur Baars
2c611d3fef
Address review comments
2023-03-01 13:30:02 +01:00
Arthur Baars
f71c3301b3
Ruby: address review comment
2023-02-20 14:32:24 +01:00
Arthur Baars
6fd836d3a9
Ruby: improve wording of error messages
2023-02-20 14:32:02 +01:00