2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00
2015-05-16 18:58:10 +02:00

SwiftLint

An experimental tool to enforce Swift style and conventions, loosely based on GitHub's Swift Style Guide.

SwiftLint hooks into Clang and SourceKit to use the AST representation of your source files for more accurate results.

Installation

Installation requires Homebrew.

$ brew install swiftlint

Usage

Xcode

To run SwiftLint as part of an Xcode build scheme, add a new "Run Script Phase" with swiftlint as its contents.

Command Line

$ swiftlint help
Available commands:

   help      Display general or command-specific help
   lint      Print lint warnings and errors for the Swift files in the current directory (default command)
   version   Display the current version of SwiftLint

Run swiftlint in the directory containing the Swift files to lint. Directories will be searched recursively.

License

MIT licensed.

S
Description
A tool to enforce Swift style and conventions.
Readme MIT 970 MiB
Languages
Swift 98%
Starlark 0.7%
Ruby 0.7%
Makefile 0.2%
Shell 0.2%