Sha256: 20828b469a58e3606dff8fb9cb2f853526e2a1846be0a1cbc747883a2a3fac06
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
[![CircleCI](https://circleci.com/gh/ashfurrow/danger-swiftlint.svg?style=svg)](https://circleci.com/gh/ashfurrow/danger-swiftlint) # Danger SwiftLint A [Danger](https://github.com/danger/danger) plugin for [SwiftLint](https://github.com/realm/SwiftLint). ## Installation Add this line to your Gemfile: ```rb gem 'danger-swiftlint' ``` ## Usage The easiest way to use is just add this to your Dangerfile: ```rb swiftlint.lint_files ``` That will lint any changed or added Swift files in the PR. You can also set up a config file first. ```rb swiftlint.config_file = '.swiftlint.yml' swiftlint.lint_files ``` And finally, you can provide a list of files manually: ``` ruby # Look through all changed Markdown files swift_files = (modified_files + added_files).select do |file| file.end_with?(".swift") end swiftlint.lint_files swift_files ``` ## Attribution Original structure, sequence, and organization of repo taken from [danger-prose](https://github.com/dbgrandi/danger-prose) by [David Grandinetti](https://github.com/dbgrandi/). ## License MIT
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-swiftlint-0.1.1 | README.md |
danger-swiftlint-0.1.0 | README.md |