Harry Maclean
ed40d72e4f
Shared: Bump extractor version
2023-08-23 14:11:22 +01:00
Harry Maclean
7e2abf20c6
Shared: Support glob patterns in shared extractor
...
Replace the `file_extensions` field with `file_globs`, which supports
UNIX style glob patterns powered by the `globset` crate.
This allows files with no extension (e.g. Dockerfiles) to be extracted,
by specifying a glob such as `*Dockerfile`.
One surprising aspect of this change is that the globs match against the
whole path, rather than just the file name.
This is a breaking change.
2023-08-23 14:11:21 +01:00
Arthur Baars
2416568489
Tree-sitter-xtractor: fix clippy warnings
2023-05-22 19:37:58 +02:00
Arthur Baars
d2bc66e393
QL: switch to shared YAML extractor
2023-05-22 19:28:59 +02:00
Arthur Baars
9f83dd5c7a
Tree-sitter extractor: extract shared dbscheme fragments into 'prefix.dbscheme'
2023-05-22 19:28:51 +02:00
Harry Maclean
48f22681a5
Merge pull request #13029 from hmac/ruby-autobuilder-refactor
...
Shared: Share autobuilder code between Ruby and QL
2023-05-12 18:24:06 +07:00
Harry Maclean
9203efbdc4
Shared: Share autobuilder code between Ruby and QL
2023-05-05 07:20:14 +00:00
Harry Maclean
c7e8f0d12a
Shared: Pin rust version for shared extractor
2023-05-05 06:36:55 +00:00
Harry Maclean
a577bec22c
Shared: Fix clippy warnings in shared extractor
2023-05-05 06:30:12 +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
3f6087e179
Shared: formatting
2023-04-23 06:04:55 +00:00
Harry Maclean
9005684b10
Shared: Add integration test for shared extractor
...
This is a very basic test but provides some confidence that the extractor is
working.
2023-04-23 05:29:22 +00:00
Harry Maclean
ac1d250596
Shared: fix language prefix in extractor
2023-04-21 15:07:47 +07:00
Harry Maclean
8091d57f03
Shared: Remove unused type
2023-04-20 08:07:40 +07:00
Harry Maclean
c4d7658cc6
Shared: high level API for the shared extractor
...
This API makes it easy to create an extractor for simple use cases.
2023-04-20 08:07:40 +07:00
Harry Maclean
2107533822
Shared: Clippy fixes
...
Use clearer methods where appropriate.
2023-04-05 18:46:57 +08:00
Harry Maclean
6a8d417588
Shared: Clippy fixes
...
Remove unnecessary borrows and lifetime specifiers.
2023-04-05 18:46:57 +08:00
Harry Maclean
a59215f3b9
Shared: 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
f74d13cf06
Shared: Add db generation functions
...
These are currently duplicated across the Ruby and QL extractors. Adding
them to the shared extractor library will get rid of this duplication.
2023-04-05 18:46:56 +08:00
Harry Maclean
6b2e8847f5
Rename shared extractor
...
It is now called `tree-sitter-extractor`, to make it clearer that it
builds on tree-sitter grammars.
2023-03-25 10:43:07 +13:00