0.03
No commit activity in last 3 years
No release in over 3 years
A Danger plug-in to suggest code changes through inline comments in pull requests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0

Runtime

 Project Readme

Danger::Suggester

CircleCI Gem Version Documentation

A Danger plug-in to suggest code changes through inline comments in pull requests.

Suggestions are calculated based on the results of git diff, so any code formatter like rubocop, prettier, go fmt, etc. can be used for this. Note that there is a limitation that multi-line replacements cannot be suggested because GitHub's suggested changes™ doesn't support it.

demo

Requirements

  • Ruby 2.2 or higher

Installation

Add this line to your application's Gemfile:

gem 'danger-suggester'

And then execute:

bundle

Or install it yourself as:

gem install danger-suggester

Usage

Add this line to your application's Dangerfile:

suggester.suggest

And then execute danger after correcting code by your favorite code formatters.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/r7kamura/danger-suggester.

License

The gem is available as open source under the terms of the MIT License.