Swift Linter Support?


Does Bitrise support any workflows for running a Swift Linter? Or would a custom script be needed for this?

1 Like

Hi @silverlogic6576,

There’s no step for Swift lint, but how you want to run it depends on your project/work flow.

You can of course use a Script step to install & use any tool you want to (http://devcenter.bitrise.io/tips-and-tricks/install-additional-tools/) and this is probably the easiest solution.

But you can also install & run Swift Lint as a Build Phase Script in your Xcode project, in that case you don’t need an additional step on bitrise.io (just make sure to install swift lint as part of that script, in case it’s not installed).

In general, unless you have it set up in your Xcode project I’d suggest you to use a Script step, and if you have some time you can easily convert that to a Build Step (http://devcenter.bitrise.io/bitrise-cli/create-your-own-step/). Once the step is ready feel free to share it (not required if you don’t want to). If you’d have any questions or issues related to step development feel free to ask in the #dev:step-dev category :wink:

Thank you. :grinning:

1 Like