Jeroen Ketema
9d1a8a7298
Merge pull request #22129 from jketema/jketema/subst-fix
...
Introduce canonicalization library for Windows `subst` drives
2026-07-28 16:21:44 +02:00
Jeroen Ketema
4f30042b10
Update expected test results after CLI/extractor changes
2026-07-27 14:00:29 +02:00
Taus
bbf52ce7a7
tree-sitter-extractor: Split direct and desugaring extractors
...
Previously the `simple` multi-language extractor carried an optional
desugarer, so every language (including plain tree-sitter ones such as
ql, dbscheme, json and blame) went through the same desugaring-aware
extraction path.
This commit splits it into two front-ends that share a private driver:
- `simple`: pure tree-sitter extraction with no desugaring. Comments
and other `extra` nodes are emitted inline as tokens. (The extractor
then extracts these as usual.)
- `desugaring`: parses source into a `ParsedTree` (a yeast AST plus
side-channel `extra` tokens) and rewrites the AST through a
`yeast::Desugarer` before extraction. The parser is a closure, so
both tree-sitter grammars (via `tree_sitter_parser`) and custom
parsers plug in the same way.
The shared multi-file plumbing (threading, glob matching, source-archive
copying, TRAP writing) lives in a new private `driver` module behind a
`LanguageExtractor` trait, so neither front-end duplicates it.
`extract` no longer takes an optional desugarer (it always walks the
parse tree directly); `extract_parsed` takes a required desugarer. ql
and ruby use the direct path; the unified Swift extractor uses the
desugaring path.
Also rename the new side-channel identifiers from "trivia" to "extra"
(ExtraToken, ParsedTree.extras, emit_extra, ...) to match tree-sitter's
own `is_extra()` terminology. The pre-existing `*_trivia_tokeninfo`
relation is left unchanged for a separate change.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-07-24 16:08:13 +00:00
github-actions[bot]
ec83894d48
Post-release preparation for codeql-cli-2.26.1
2026-07-09 17:25:35 +00:00
github-actions[bot]
9acbbb8049
Release preparation for version 2.26.1
2026-07-09 16:48:01 +00:00
Taus
3c3f740a25
Merge pull request #22120 from asgerf/unified/local-scoping
...
Unified: implement local scoping
2026-07-08 14:33:14 +02:00
Asger F
d0cd4ac536
Shared: remove unused getLhs() predicate
2026-07-03 11:54:26 +02:00
Mathias Vorreiter Pedersen
4f4cdf434b
Merge pull request #22061 from MathiasVP/mad-write-through-model
...
Shared: Support flow summaries from `ReturnValue`s
2026-07-02 12:38:44 +01:00
Geoffrey White
226efb3ad7
Potential fix for pull request finding
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-01 16:52:38 +01:00
Geoffrey White
73ec4b8d02
Ruby: Fix one last inline expectations testFailure.
2026-07-01 16:44:12 +01:00
Jeroen Ketema
daf97f7139
Add Windows integration tests showing that subst is handled inconsistently
2026-07-01 12:51:05 +02:00
Mathias Vorreiter Pedersen
b7b731bab7
Merge branch 'main' into mad-write-through-model
2026-06-30 15:12:02 +01:00
Tom Hvitved
37d2224b9d
Merge pull request #22082 from hvitved/shared/final-tree-sitter-classes
...
Shared: Generate `final` tree-sitter classes
2026-06-30 09:09:42 +02:00
Geoffrey White
f353a17431
Merge pull request #22081 from geoffw0/rubyinline2
...
Ruby: Address testFailures in inline expectations tests (part 2)
2026-06-29 19:37:28 +01:00
Geoffrey White
d519f79703
Update ruby/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll
...
Co-authored-by: Tom Hvitved <hvitved@github.com >
2026-06-29 15:37:45 +01:00
Geoffrey White
72f1a0d89b
Ruby: Clean up the CodeQL a little more.
2026-06-29 11:22:02 +01:00
Geoffrey White
96e88a1f9a
Ruby: Inline AnyComment class into ExpectationComment.
2026-06-29 11:21:42 +01:00
Geoffrey White
3058198c0d
Merge pull request #22078 from geoffw0/rubyinline
...
Ruby: Address testFailures in inline expectations tests (part 1)
2026-06-29 11:06:10 +01:00
Tom Hvitved
818a25b64e
Ruby: Regenerate TreeSitter.qll
2026-06-29 12:05:41 +02:00
Geoffrey White
727f7d2afa
Fix for pull request finding
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-29 10:58:45 +01:00
Geoffrey White
3c5f70de11
Ruby: And another missing tag.
2026-06-29 10:37:21 +01:00
Geoffrey White
c0c8958db1
Ruby: Implement inline expectation comments for .erb files.
2026-06-26 19:14:03 +01:00
Geoffrey White
0ee40417ea
Ruby: Add inline expectation comment to .erb file.
2026-06-26 19:14:01 +01:00
Geoffrey White
46382cbc8e
Ruby: Address more inline expectation testFailures.
2026-06-26 17:56:37 +01:00
Geoffrey White
93439db87b
Ruby: Address inline expectation testFailures.
2026-06-26 17:11:56 +01:00
Asger F
5735ac330d
Ruby: Regenerate raw AST
2026-06-26 10:29:08 +02:00
github-actions[bot]
456e33773b
Post-release preparation for codeql-cli-2.26.0
2026-06-25 16:24:06 +00:00
github-actions[bot]
237c5639e2
Release preparation for version 2.26.0
2026-06-25 15:27:00 +00:00
Anders Schack-Mulligen
5047bee432
Ruby: Adjust qldoc.
2026-06-24 13:36:54 +02:00
copilot-swe-agent[bot]
4fa8a9fb1d
Synthesize true value for valueless Ruby CaseExpr
2026-06-24 10:36:23 +00:00
Mathias Vorreiter Pedersen
09c7329488
Ruby: Fixes after changes to the flow summary API.
2026-06-23 20:33:24 +01:00
Anders Schack-Mulligen
7d66ec0f39
Ruby: Clarify AST.
2026-06-22 11:14:53 +02:00
Anders Schack-Mulligen
6fbb572950
Ruby: Get rid of the change note.
2026-06-19 13:27:34 +02:00
Anders Schack-Mulligen
132b476acd
Ruby: autoformat
2026-06-19 13:26:10 +02:00
copilot-swe-agent[bot]
65b4a4346b
Add ExceptionList AST node for rescue clauses with 2+ exceptions
2026-06-19 13:26:06 +02:00
Anders Schack-Mulligen
0834e640bb
Ruby: Prepare qltest change by line renumbering.
2026-06-19 13:15:18 +02:00
Mathias Vorreiter Pedersen
c12cf88c52
Merge branch 'main' into add-yaml-comments
2026-06-17 10:17:06 +01:00
Anders Schack-Mulligen
3654205ae2
Merge pull request #21991 from github/copilot/change-ast-for-else-branches
...
Ruby: Add CaseElseBranch AST node to distinguish else-branch from its body
2026-06-17 09:52:39 +02:00
Anders Schack-Mulligen
027f302932
Ruby: improve return type
2026-06-17 08:47:14 +02:00
Owen Mansel-Chan
7f3181b145
Merge pull request #21972 from github/copilot/qlref-conversion-instructions
...
Ruby: Convert CodeQL .qlref tests to inline expectations
2026-06-16 12:31:17 +01:00
Owen Mansel-Chan
48aefff964
Add SPURIOUS and MISSING to some comments
2026-06-16 10:40:39 +01:00
Owen Mansel-Chan
c5e020c68c
Work around problem with comments in heredocs
2026-06-16 10:40:37 +01:00
Anders Schack-Mulligen
8778e881cb
Ruby: Accept two more test changes for new AST node.
2026-06-16 11:14:15 +02:00
Anders Schack-Mulligen
36c1796ef7
Ruby: Fix data flow step.
2026-06-16 11:11:42 +02:00
Owen Mansel-Chan
5e606b7bef
Don't use inline expectations when alerts in erb files
2026-06-15 23:03:50 +01:00
copilot-swe-agent[bot]
84e7c2de6c
Convert Ruby qlref tests to inline expectations
2026-06-15 23:03:46 +01:00
copilot-swe-agent[bot]
f658bc9b39
Update expected files for CaseElseBranch AST node change
2026-06-15 12:11:22 +00:00
copilot-swe-agent[bot]
8cb4b9b118
Add CaseElseBranch AST node for Ruby case else branches
2026-06-15 11:42:13 +00:00
Mathias Vorreiter Pedersen
d38091fe28
Ruby: Add upgrade and downgrade scripts.
2026-06-04 17:54:57 +01:00
Mathias Vorreiter Pedersen
303cb11609
Ruby: Add support for YAML comments.
2026-06-04 17:54:55 +01:00