SwiftLint
A tool to enforce Swift style and conventions
..., to detect errors quickly before compiling. However, SwiftLint is designed to run on valid Swift code that cleanly completes the compiler’s parsing stage. So running SwiftLint before ‘Compile Sources’ might yield some incorrect results. SwiftLint hooks into SourceKit so it continues working even as Swift evolves! This also keeps SwiftLint lean, as it doesn’t need to ship with a full Swift compiler, it just communicates with the official one you already have installed on your machine.