codeql/swift
Tom Hvitved ad6b870f94 Data flow: Sync files 2022-09-22 15:01:33 +02:00
..
codegen Swift: fix static assert? 2022-09-22 11:17:07 +02:00
extractor Swift: redirect more artfacts 2022-09-22 11:17:07 +02:00
integration-tests Swift: fix integration tests 2022-08-30 11:46:27 +02:00
ql Data flow: Sync files 2022-09-22 15:01:33 +02:00
tools Swift: do not skip newly supported CLI args 2022-09-22 11:17:07 +02:00
.clang-format
.gitignore
.pep8 Swift: implement python schema 2022-09-21 15:53:09 +02:00
BUILD.bazel Swift: implement python schema 2022-09-21 15:53:09 +02:00
README.md Update Swift readme 2022-05-31 10:56:28 +01:00
codeql-extractor.yml
prefix.dbscheme Swift: implement python schema 2022-09-21 15:53:09 +02:00
rules.bzl Revert "Swift: print a helpful message on macOS ARM" 2022-09-14 10:34:46 +02:00
schema.py Swift: switch to python db schema 2022-09-22 11:17:14 +02:00

README.md

Warning

The Swift codeql package is an experimental and unsupported work in progress.

Usage

First ensure you have Bazel installed, for example with

brew install bazelisk

then from the ql directory run

bazel run //swift:create-extractor-pack

which will install swift/extractor-pack.

Using --search-path=swift/extractor-pack will then pick up the Swift extractor. You can also use --search-path=., as the extractor pack is mentioned in the root codeql-workspace.yml.

Notice you can run bazel run :create-extractor-pack if you already are in the swift directory.

Code generation

Run

bazel run //swift/codegen

to update generated files. This can be shortened to bazel run codegen if you are in the swift directory.