Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
Paolo Tranquilli 2b395985e6 Swift: remove unneeded trailing `/` in `README.md` 2022-10-31 09:55:03 +01:00
Paolo Tranquilli e62acb1e8c Swift: revert wrong paragraph edit in `README.md` 2022-10-31 09:54:15 +01:00
Paolo Tranquilli 7237362feb Swift: add debug path mapping to `README.md`
This allows breakpoints to work more reliably, including on a bazel
project in CLion.
2022-10-31 09:51:41 +01:00
Paolo Tranquilli 3dcdc739de Swift: add possibility to run the extractor under an env-specified tool
if `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` env variable is set, and either
* `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER_FILTER` is not set, or
* it is set to a regexp matching any substring of the extractor call
then the extractor process is substituted with the command (and possibly
options) stated in `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER`, followed by the
system arguments of the extractor itself (which should include the
extractor program itself at the start).

Before calling `exec`, `CODEQL_EXTRACTOR_SWIFT_RUN_UNDER` is unset to
avoid unpleasant loops.

An example usage is to run the extractor under `gdbserver :1234` when
the arguments match a given source file.
2022-10-28 14:12:27 +02:00
Geoffrey White 0281bfedda
Merge pull request #10689 from d10c/swift/cleartext-storage-nsuserdefaults
Swift: Query for CWE-312: Exposure of sensitive information using NSUserDefaults
2022-10-17 14:05:17 +01:00
Paolo Tranquilli a20fdad7c3 Swift: update `README.md` with IDE setup 2022-10-14 11:12:53 +02:00
Nora Dimitrijević ea3510e766 Swift: DX changes based on my new setup experience 2022-10-10 14:08:04 +02:00
Geoffrey White ce3488b1b5
Update Swift readme 2022-05-31 10:56:28 +01:00
Geoffrey White 27968b60a5
Added Bazel install step. 2022-05-31 10:25:42 +01:00
Henry Mercer ca764576be Swift: Update mention of manifest file in docs 2022-05-30 15:54:52 +01:00
Paolo Tranquilli a3f6682bbb Swift: remove `.codeqlmanifest`
The extractor pack entry in there has been moved to the root manifest.
2022-05-23 12:49:08 +02:00
Paolo Tranquilli b66f1b27b0
remove `pip install` mention from README.md
It is not needed any more since pip requirements were coded in bazel.
2022-05-19 12:47:20 +02:00
Paolo Tranquilli 91fd83a554 Swift: dbscheme generator
This patch introduces the basic infrastructure of the code generation
suite and the `dbscheme` generator.

Notice that the checked in `schema.yml` should reflect swift 5.6 but
might need some tweaking.

Closes https://github.com/github/codeql-c-team/issues/979
2022-04-14 11:27:41 +02:00
Paolo Tranquilli 6440242268 Swift+Bazel: apply review comments 2022-04-12 16:03:20 +02:00
Paolo Tranquilli a205b465ba Bazel: reorganization
* fixed 5.0.0 as bazel version
* made dependencies better loadable
* moved `//swift/install` to `//swift:create-extractor-pack` (following
  the clearer ruby naming)
* renamed `extractor_pack` to `extractor-pack` for consistency with Ruby
2022-04-12 12:40:59 +02:00
Paolo Tranquilli 664d5ba0a9 Swift: moved install to a separate package
When importing the workspace from semmle-code, we do not need nor want
to instantiate `@util`, so that must be in a separate bazel package.
2022-04-12 12:40:59 +02:00
Paolo Tranquilli 95dbf2d666 Swift: first skeleton extractor
This adds a first dummy extractor for swift.

Running `bazel run //swift:install` will create an `extractor_pack`
directory in `swift`. From that moment providing `--search-path=swift`
will pick up the extractor.
2022-04-12 12:40:59 +02:00