Rasmus Wriedt Larsen
54c7c5e8be
Tree sitter extractor: Proper handling of LGTM_INDEX_FILTERS
...
If someone had used `LGTM_INDEX_FILTERS=exclude:**/*\ninclude:*.rb`
before, we would have mistakenly excluded all files :|
(LGTM_INDEX_FILTERS is a prioritized list where later matches take
priority over earlier ones)
This change is needed to support adding `exclude:**/*` as the first
filter if `paths` include a glob, which currently causes bad behavior in
the Python extractor. However, we can first introduce that change once
this PR has been merged.
I realize this change can cause more folders and files to be traversed
(since they are not just skipped with --exclude). We plan to make a
better long term fix which should bring back the previous performance.
2024-01-18 11:44:31 +01:00
Calum Grant
4660a25d44
Merge pull request #15354 from github/calumgrant/shared-diagnostics
...
C++/Swift: Create shared library and share Diagnostics
2024-01-17 15:40:12 +00:00
Calum Grant
d57fc3d7db
C++: Remove unneeded includes
2024-01-17 14:34:28 +00:00
Calum Grant
51c5afff8b
Create shared/cpp library and move Diagnostics there
2024-01-17 14:23:18 +00:00
erik-krogh
1a8a70dc1b
mark the range [0-?] as good in the overly-large-range query
2024-01-17 13:11:57 +01:00
Alexander Eyers-Taylor
934474681d
Merge pull request #15254 from github/post-release-prep/codeql-cli-2.16.0
...
Post-release preparation for codeql-cli-2.16.0
2024-01-16 14:50:40 +00:00
github-actions[bot]
57df8b92df
Post-release preparation for codeql-cli-2.16.0
2024-01-15 15:00:50 +00:00
Tom Hvitved
295198744b
Ruby: Handle captured yield calls
2024-01-10 14:25:15 +01:00
Tom Hvitved
c9cf2a899c
Merge pull request #15260 from hvitved/dataflow/may-benefit-from-cctx-simplify
...
Data flow: Remove column from `mayBenefitFromCallContext`
2024-01-10 11:43:15 +01:00
Tom Hvitved
f90201eb56
Data flow: Remove column from mayBenefitFromCallContext
2024-01-09 11:34:43 +01:00
Ed Minnix
65d05bf3de
Add environment-injection to Model Validation
2024-01-08 09:38:43 -05:00
github-actions[bot]
a6c8cc9551
Release preparation for version 2.16.0
2024-01-08 13:11:26 +00:00
Tom Hvitved
25e2271b2f
Merge pull request #15157 from hvitved/dataflow/fwd-flow-in-non-linear-rec
...
Data flow: Avoid unnecessary non-linear recursion in `fwdFlowIn`
2024-01-08 10:31:51 +01:00
Aditya Sharad
b1803d0ac2
Merge rc/3.12 into main
2023-12-21 16:40:51 -08:00
Tom Hvitved
5be4fe1887
Data flow: Avoid unnecessary non-linear recursion in fwdFlowIn
2023-12-19 21:03:03 +01:00
github-actions[bot]
8f72b0e4f7
Post-release preparation for codeql-cli-2.15.5
2023-12-19 10:32:57 +00:00
github-actions[bot]
19af35b29a
Release preparation for version 2.15.5
2023-12-18 21:22:44 +00:00
yoff
e0c027f13c
Merge pull request #14848 from hvitved/python/shared-type-tracking
...
Python: Adopt shared type tracking library
2023-12-18 21:14:42 +01:00
Anders Schack-Mulligen
07ad770437
Dataflow: Deprecate FlowStateString.
2023-12-14 15:05:33 +01:00
Tom Hvitved
84aa9f17a0
Python/Ruby: Use SummaryTypeTracker from typetracking pack
2023-12-14 13:25:18 +01:00
Tom Hvitved
1e24de7e83
Copy SummaryTypeTracker.qll to typetracking pack
2023-12-14 13:22:48 +01:00
Tom Hvitved
4776e9ccd2
Type tracking: Allow for a non-standard flowsTo predicate
2023-12-14 12:36:09 +01:00
Tom Hvitved
c8b4a215bc
Merge pull request #14573 from hvitved/flow-summary-impl-param
...
Move `FlowSummaryImpl.qll` to `dataflow` pack
2023-12-14 12:24:15 +01:00
Tom Hvitved
8f0e0b6559
Merge pull request #15090 from hvitved/inline-flow-test-get-arg-string
...
InlineFlowTest: Allow for custom `getArgString`
2023-12-14 10:53:55 +01:00
Tom Hvitved
7da10e0013
Merge pull request #15095 from hvitved/dataflow/boolean-class
...
Data flow: Use `Boolean` class
2023-12-14 10:29:52 +01:00
Tom Hvitved
8fc6fb1ec0
Apply suggestions from code review
...
Co-authored-by: yoff <lerchedahl@gmail.com >
2023-12-14 10:10:53 +01:00
Tom Hvitved
098afb935b
Address more review comments
2023-12-14 09:48:45 +01:00
Tom Hvitved
5a426d1800
Data flow: Use Boolean class
2023-12-14 09:04:16 +01:00
Jeroen Ketema
99e65df6ce
Merge remote-tracking branch 'upstream/rc/3.12' into mb12
2023-12-13 15:43:39 +01:00
Tom Hvitved
28a2d05cf8
InlineFlowTest: Allow for custom getArgString
2023-12-13 13:58:44 +01:00
Tom Hvitved
3c2336e40b
Merge pull request #15074 from hvitved/dataflow/get-node-type-cached
...
Data flow: Use cached `nodeDataFlowType` instead of `getNodeType`
2023-12-12 14:49:41 +01:00
Tom Hvitved
b3929e2375
Data flow: Use cached nodeDataFlowType instead of getNodeType
2023-12-12 13:46:39 +01:00
Anders Schack-Mulligen
3bf6c0fe02
Rangeanalysis: Focus pre-bound calculation.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
c14d917a76
Rangeanalysis: Prune range calculation.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
58d463dd33
Rangeanalysis: Minor refactor for bound steps.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
73671b6da3
Rangeanalysis: Refactor base bounds.
2023-12-11 14:07:10 +01:00
Anders Schack-Mulligen
6b178fb64a
Rangeanalysis: Preparatory refactor for bounds sharing.
2023-12-11 14:07:10 +01:00
Tom Hvitved
cdf59e1e1d
Ruby: Cache more predicates
2023-12-11 10:15:17 +01:00
Tom Hvitved
adc4455f09
Parameterize FlowSummaryImpl.qll
2023-12-10 11:11:05 +01:00
Tom Hvitved
41fa39eb7c
Parameterize AccessPathSyntax.qll
2023-12-10 11:11:05 +01:00
Tom Hvitved
fd7e3454d6
Copy FlowSummaryImpl.qll to dataflow pack
2023-12-10 11:11:05 +01:00
Tom Hvitved
4fbd806d70
Copy AccessPathSyntax.qll to dataflow pack
2023-12-10 11:11:05 +01:00
Anders Schack-Mulligen
75d8da9007
Dataflow: Add change note about deprecation.
2023-12-08 14:25:20 +01:00
github-actions[bot]
92af5f5386
Post-release preparation for codeql-cli-2.15.4
2023-12-06 22:59:22 +00:00
github-actions[bot]
c04457e9e7
Release preparation for version 2.15.4
2023-12-06 21:11:50 +00:00
Mathias Vorreiter Pedersen
911f1543e0
DataFlow: Adjust QLDoc.
2023-11-28 15:26:48 +00:00
Mathias Vorreiter Pedersen
339bf1363a
DataFlow: s/flowThroughStepAllowed/validParameterAliasStep.
2023-11-28 14:32:23 +00:00
Mathias Vorreiter Pedersen
064f68fdca
DataFlow: Add a predicate for modifying which dataflow steps participate in flow-through summaries.
2023-11-28 14:27:15 +00:00
Tom Hvitved
1a6886cf99
SSA: Add locations to ease debugging
2023-11-22 08:37:02 +01:00
Tom Hvitved
fab6813a49
Merge pull request #14815 from hvitved/type-tracking/param-consistency-checks
...
Type tracking: Parameterize consistency checks
2023-11-20 11:05:06 +01:00