Skip to content

Files

This branch is 35243 commits behind github/codeql:main.

swift

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 18, 2022
Jul 18, 2022
Jul 1, 2022
Jul 20, 2022
Jun 29, 2022
Apr 12, 2022
Apr 28, 2022
Jun 1, 2022
May 31, 2022
Apr 12, 2022
Jun 8, 2022

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.