Sha256: 2656b0f3414663057d02c56d020a35ff28bc25232908843bcf44ce13c14e43b7
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
# danger-swiftformat [![Build Status](https://travis-ci.org/garriguv/danger-ruby-swiftformat.svg?branch=master)](https://travis-ci.org/garriguv/danger-ruby-swiftformat) [![Gem Version](https://badge.fury.io/rb/danger-swiftformat.svg)](https://rubygems.org/gems/danger-swiftformat) A [Danger] plugin to check Swift formatting using [SwiftFormat]. This plugin is heavily inspired by [danger-swiftlint]. ## Installation Add this line to your Gemfile: require 'danger-swiftformat' [SwiftFormat] also needs to be installed before you run Danger. ## Usage Add this to your `Dangerfile` ```ruby swiftformat.check_format ``` By default, danger-swiftformat will check added and modified files. If you want errors to fail Danger, you can use the `fail_on_error` option: ```ruby swiftformat.check_format(fail_on_error: true) ``` You can specify the `swiftformat` binary using the `binary_path` parameter: ```ruby swiftformat.binary_path = "/path/to/swiftformat" ``` ## Development 1. Clone this repo 2. Run `bundle install` to setup dependencies. 3. Run `bundle exec rake spec` to run the tests. 4. Use `bundle exec guard` to automatically have tests run as you make changes. 5. Make your changes. [Danger]: https://danger.systems/ruby/ [SwiftFormat]: https://github.com/nicklockwood/SwiftFormat [danger-swiftlint]: https://github.com/ashfurrow/danger-ruby-swiftlint
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danger-swiftformat-0.0.3 | README.md |
danger-swiftformat-0.0.2 | README.md |