Add this line to your Gemfile:
The easiest way to use is just add this to your Dangerfile:
That's going to lint all your Swift files. It would be better to only lint the changed or added ones, which is complicated due. Check out this issue for more details.
swiftlint.config_file = '.swiftlint.yml' swiftlint.lint_files
If you want the lint result shows in diff instead of comment, you can use
inline_mode option. Violations that out of the diff will show in danger's fail or warn section.
swiftlint.lint_files inline_mode: true