Paolo Tranquilli
ddf45b27ca
Merge pull request #13300 from github/redsun82/swift-fix-autobuild-corner-case
...
Swift: exclude unknown type targets ending in `Tests` or `Test` from autobuilding
2023-05-26 16:49:01 +02:00
Paolo Tranquilli
c5cee0d419
Swift: exclude targets ending in Tests or Test from autobuilding
2023-05-26 14:19:07 +02:00
Paolo Tranquilli
a6e21dac8f
Merge pull request #13284 from github/redsun82/swift-remove-property-wrapper-inconsistencies
...
Swift: remove some AST and CFG inconsistencies
2023-05-26 12:22:56 +02:00
Paolo Tranquilli
192c0d5e83
Swift: simplify change note
...
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com >
2023-05-26 08:20:58 +02:00
Mathias Vorreiter Pedersen
7361ad977a
Merge pull request #13291 from geoffw0/correction
...
Swift: Promote some Data models to DataProtocol
2023-05-25 11:28:42 -07:00
Geoffrey White
3f3a5d39e5
Swift: Fix the SQL injection test.
2023-05-25 17:13:51 +01:00
Geoffrey White
98e5f0fc4f
Swift: Add change note.
2023-05-25 16:04:18 +01:00
Geoffrey White
51321a218b
Swift: Correct models in Data.qll.
2023-05-25 15:55:45 +01:00
Geoffrey White
5dfb07ce37
Swift: Test DataProtocol.
2023-05-25 15:51:21 +01:00
Paolo Tranquilli
5e66885a8e
Swift: add change note
2023-05-25 14:00:04 +02:00
Paolo Tranquilli
51f1a5dcc8
Swift: remove getOpaqueExpr from OpenExistentialExpr's children
2023-05-25 13:05:21 +02:00
Paolo Tranquilli
7b76aa34bd
Swift: fix CFG inconsistency on TapExpr
2023-05-25 13:05:21 +02:00
Paolo Tranquilli
b26b0a6e43
Swift: remove property wrapper CFG inconsistencies
2023-05-25 13:05:21 +02:00
Paolo Tranquilli
7878bc3cc1
Swift: remove property wrapper AST inconsistencies
2023-05-25 12:15:22 +02:00
Paolo Tranquilli
ac31209233
Swift: add change notes to consistency queries
2023-05-25 10:56:25 +02:00
Paolo Tranquilli
8d656a996b
Swift: add QLdoc to AST consistency checks
2023-05-25 09:56:39 +02:00
Paolo Tranquilli
63fb0581c2
Swift: accept inconsistencies for now
2023-05-24 20:09:46 +02:00
Paolo Tranquilli
67a9141e8c
Swift: make AST printer consistency query more helpful
2023-05-24 18:10:08 +02:00
Paolo Tranquilli
b9fe056d81
Swift: add qlpack.yml to consistency-queries
2023-05-24 18:10:08 +02:00
Paolo Tranquilli
85fdcd9912
Swift: move consistency queries
2023-05-24 18:10:08 +02:00
Paolo Tranquilli
e513af1bcf
Swift: add CFG and PrintAst consistency queries, enabling them in CI
2023-05-24 18:10:08 +02:00
Jeroen Ketema
3a3d9bc505
Swift: Rewrite inline expectation tests to use the parameterized module
2023-05-24 11:38:22 +02:00
Paolo Tranquilli
20893bdef5
Swift: accept test changes after hidden AST fix
2023-05-22 10:14:29 +02:00
Paolo Tranquilli
de03bdc235
Swift: fix hidden AST getters
...
For consistency with the C/C++ QL library, getters of AST elements
within the hidden AST should not themselves skip other hidden AST
elements.
2023-05-22 09:57:48 +02:00
Mathias Vorreiter Pedersen
58f4b7696d
Merge pull request #13223 from geoffw0/useasnominaltypedecl
...
Swift: Use asNominalTypeDecl more.
2023-05-19 16:53:28 +01:00
Alexandre Boulgakov
b3e76d6052
Swift: Drop support for plaintext diagnostics (and helpLinks).
...
The recommended option is Markdown diagnostics, and we have already migrated everything to emit them. The empty help link we're currently emitting everywhere is a bug.
2023-05-19 15:16:02 +01:00
Alexandre Boulgakov
110b766770
Swift: Add a . to a test message to match the logging API change in this PR.
2023-05-19 14:46:12 +01:00
Alexandre Boulgakov
1e9b849e93
Merge branch 'main' into redsun82/swift-diagnostics-wording
2023-05-19 14:43:01 +01:00
Alexandre Boulgakov
8f7279ee05
Swift: TSP message wording changes.
2023-05-19 14:39:57 +01:00
Alexandre Boulgakov
5bb2eb4155
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:37:18 +01:00
Alexandre Boulgakov
137b4a99ef
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:36:24 +01:00
Alexandre Boulgakov
ddcac20a94
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:36:14 +01:00
Alexandre Boulgakov
8a15af5614
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:36:04 +01:00
Geoffrey White
68bdd51dd3
Swift: Add QLDoc encouraging this pattern.
2023-05-19 14:35:08 +01:00
Geoffrey White
0d8aa825d9
Swift: Use asNominalType() more widely to include things declared in extensions.
2023-05-19 14:19:32 +01:00
Geoffrey White
ccbd041875
Swift: Use asNominalTypeDecl() to simplify models.
2023-05-19 14:04:49 +01:00
Mathias Vorreiter Pedersen
2206216dbb
Merge pull request #13221 from geoffw0/filepath
...
Swift: Taint model for FilePath
2023-05-19 14:01:22 +01:00
Geoffrey White
c8dfc87dae
Swift: getName -> getFullName.
2023-05-19 12:18:17 +01:00
Geoffrey White
13755ad5f5
Swift: Remove placeholder lines I had left in.
2023-05-19 11:42:00 +01:00
Geoffrey White
6dfad79972
Swift: Model FilePath.
2023-05-18 18:56:08 +01:00
Geoffrey White
371bcc55fa
Swift: Consolidate and extend tests of taint flow through FilePath.
2023-05-18 18:01:38 +01:00
Alexandre Boulgakov
fa52c32564
Merge pull request #13170 from github/sashabu/internal-error-tsp
...
Swift: Emit diagnostics on assertion/expectation violations.
2023-05-18 17:19:43 +01:00
Alex Denisov
7e15386376
Swift: bump all versions to 0.1.0
2023-05-17 11:28:28 +02:00
Alexandre Boulgakov
060a48571a
Swift: Emit diagnostics on assertion/expectation violations.
2023-05-16 19:40:00 +01:00
Alexandre Boulgakov
7ada125299
Swift: Support fmtlib for assertions/expectations.
...
Specifically, this adds custom formatters using `path::operator string()` and `error_code::message()` and dereferences a (non-empty) optional. `fmtlib` provides formatters for these standard library types in `fmt/std.h`, but that file also requires RTTI (which we disable) for `std::exception` so we can't use it without either patching `fmtlib` (which they're open to: https://github.com/fmtlib/fmt/issues/3170 ) or enabling RTTI (which will require some consideration).
2023-05-16 18:33:28 +01:00
Mathias Vorreiter Pedersen
99545420d5
Merge pull request #13177 from MathiasVP/recommend-secure-randomness
...
Swift: Recommend a proper source of randomness in `swift/hardcoded-key`
2023-05-16 18:04:13 +01:00
Mathias Vorreiter Pedersen
9def3dd440
Update swift/ql/src/queries/Security/CWE-321/HardcodedEncryptionKey.swift
...
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com >
2023-05-16 17:42:34 +01:00
Geoffrey White
3bd16fa1d8
Merge pull request #13184 from geoffw0/docconsistency
...
Swift: Mirror changes made in the tutorial docs.
2023-05-16 17:42:03 +01:00
Mathias Vorreiter Pedersen
f5be8cfe58
Merge pull request #13167 from geoffw0/sensitivefps
...
Swift: Fix some FPs from the sensitive data library
2023-05-16 17:12:47 +01:00
Paolo Tranquilli
42d40900d3
Swift: reword TSP diagnostics after doc team review
2023-05-16 17:52:02 +02:00