How to run Swiftlint for selected files?

768 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 answers

0
Vladyslav Zavalykhatko On BEST ANSWER

Run swiftlint with --path option, like:

swiftlint --path 'path to your file'