developing-on-linux - Run Swift formatting, linting, and type-checking on Linux
Installs Swift toolchain and linters on Linux to run format, lint, and type-check gates locally without macOS.
Tags
Updated: 2026-09-19Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Install pinned Swift toolchain
- Install pinned SwiftLint binary
- Run local swift-format checks
- Run strict local SwiftLint checks
- Type-check Foundation-only Swift code
Inputs
- Swift source files
- Tool versions in scripts/install-ci-tools.sh
- Swift toolchain tarball URL
- SwiftLint release binary URL
- Project configuration files (.swift-format, .swiftlint.yml)
Outputs
- Environment configuration script (/tmp/swiftenv.sh)
- In-place formatted Swift files
- Byte-parity format check output
- SwiftLint linting reports
- Swiftc type-check error output
Requirements
- Linux operating system (e.g. Ubuntu x86_64)
- Network access for downloading toolchains
- Command-line tools (curl, tar, unzip, cmp, git, bash)
