How do I create .swiftlint.yml file & where I need to put it?

Bhuvanendra Pratap Maurya picture Bhuvanendra Pratap Maurya · Mar 30, 2017 · Viewed 16.7k times · Source

I want to use Swiftlint in my Swift project. I followed the Realm instruction and installed Swiftlint by brew install swiftlint. Further I face the problem to create .swiftlint.yml file.

So please suggest me how I proceed?

Answer

Lehlohonolo_Isaac picture Lehlohonolo_Isaac · Nov 30, 2017

If you are using the terminal:

    cd your_project_directory
    touch .swiftlint.yml