Search code examples
swiftlint

How do I use swiftlint to lint a single file?


I'd like to use swiftlint to lint a single file. How do I accomplish this? Checking the docs on https://github.com/realm/SwiftLint was not helpful.


Solution

  • You can also do this with:

    swiftlint --path 'path to your file'