Each example can be executed by navigating into this folder and running swift run <example> <arguments>
. There is the following set of examples available:
- AddOneToIntegerLiterals: Command line tool to add 1 to every integer literal in a source file
- CodeGenerationUsingSwiftSyntaxBuilder: Code-generate a simple source file using SwiftSyntaxBuilder
- ExamplePlugin: Compiler plugin executable using
SwiftCompilerPlugin
BartyCrouch: A tool to incrementally update strings files to help with localization.
Hatch: Provides a simple, extensible parser to obtain a hierarchical list of symbols.
Muter: Automated mutation testing for Swift.
Pecker: A tool to detect unused code.
Periphery: A tool to detect unused code.
Piranha: A tool for refactoring code related to feature flags.
Sitrep: A source code analyzer for Swift projects.
STAR: A tool to find how often specified Swift type(s) are used in a project.
Swift AST Explorer: A Swift AST visualizer.
Swift Stress Tester: A test driver for sourcekitd
and Swift evolution.
Swift Variable Injector: A tool to replace string literals with the values of environment variables.
swift-format: Formatting technology for Swift source code.
SwiftLint: A tool to enforce Swift style and conventions.
SwiftPack: A tool for automatically embedding Swift library source.
SwiftRewriter: A Swift code formatter.
SwiftSemantics: Parses Swift code into its constituent declarations.