Swan is a static analysis tool used to analyze swift code , this Visual Studio Code extension is designed to streamline workflows for using the SWAN tool.
- Automatically detect Swift files.
- Provide commands for running SWAN analysis.
- Display analysis results directly in VS Code.
- Search for "swan-GUI" in the Visual Studio Code Marketplace.
- Click
Install
. - Open the extension and go to general settings
- Then provide the absolute paths for the driver.jar, swan-spm.py and swan-swiftc files after you have built the swan tool locally
- Open a Swift project in VS Code.
- Provide the absolute path to your specification file for either taint or typestate analysis
- Use the menu to select an analysis option or use the command palette (
Ctrl+Shift+P
orCmd+Shift+P
) to find and execute Swan Commands.