mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Tests can be run with ``` bazel test //swift/codegen:tests ``` Coverage can be checked installing `pytest-cov` and running ``` pytest --cov=swift/codegen swift/codegen/test ```
Warning
The Swift codeql package is an experimental and unsupported work in progress.
Usage
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=swift, as the extractor pack is mentioned in swift/.codeqlmanifest.json.
Notice you can run bazel run :create-extractor-pack if you already are in the swift directory.
Code generation
Make sure to install the pip requirements via
python3 -m pip install -r codegen/requirements.txt
Run
bazel run //swift/codegen
to update generated files. This can be shortened to
bazel run codegen if you are in the swift directory.