How to run Swiftlint for selected files?

782 Views Asked by At

I am looking for the way to run Swiftlint selectively for a single file rather than entire project. How one can run swiftlint so that it can check only one selected files?

1

There are 1 best solutions below

0
On BEST ANSWER

Run swiftlint with --path option, like:

swiftlint --path 'path to your file'