Skip to content

soutaro/SwiftLint

Repository files navigation

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

Command Line Usage

$ 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
   version   Display the current version of SwiftLint

Run swiftlint in the directory containing the Swift files to lint. SwiftLint will search files recursively in the current directory.

License

MIT licensed.

About

A tool to enforce Swift style and conventions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 98.2%
  • Ruby 1.1%
  • Other 0.7%