# Adding SwiftLint

**URL:** <https://discuss.bitrise.io/t/adding-swiftlint/2651>\
**Category:** Released\
**Tags:** step, contrib-this-feature, ios, released\
**Created:** [September 7, 2017, 9:34am UTC](https://discuss.bitrise.io/t/adding-swiftlint/2651 "2017-09-07T09:34:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [September 8, 2017, 9:47am UTC](https://discuss.bitrise.io/t/adding-swiftlint/2651/4 "2017-09-08T09:47:48Z")

</div>

@kimdv looks great so far! Not sure if you want to add any other feature to the step, right now it will install `swiftlint` and run it **in the current directory** - maybe an input for where `swiftlint lint` should be run would be useful? Just an idea 🙂

Dev note: as described at [GitHub - kimdv/bitrise-step-swiftlint](https://github.com/kimdv/bitrise-step-swiftlint#how-to-create-your-own-step) you can now use this step both on your Mac and on [bitrise.io](http://bitrise.io), without even sharing it. On your Mac you can use the `path::/path/to/step` form, and the `git::` one works everywhere even on [bitrise.io](http://bitrise.io) - example:

```auto
workflows:
  primary:
    steps:
    - activate-ssh-key@3.1.1:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@3.5.1: {}
    - git::https://github.com/kimdv/bitrise-step-swiftlint.git: {}

```

![Screenshot from 2017-09-08 11-46-45](https://sea2.discourse-cdn.com/flex016/uploads/bitrise/original/1X/8dded54a9f9e673a970c3e3ed41f31a13f2d34e0.png)

P.S.: you can run the workflow editor on your Mac too, with: `bitrise :workflow-editor` ([Workflow Editor "v2" (Open Source & Offline Workflow Editor)](http://discuss.bitrise.io/t/workflow-editor-v2-open-source-offline-workflow-editor/39/1))

---

_[View the full topic](https://discuss.bitrise.io/t/adding-swiftlint/2651)._
