rubocop-twirp

Gem codecov

Improve your Twirp code with RuboCop

Install

gem install rubocop-twirp

Add to your Gemfile

gem "rubocop-twirp", require: false

Add to .rubocop.yml

require: rubocop-twirp

Use

Scan and fix issues

rubocop -r rubocop-twirp --only Twirp -A

Fix Twirp::ClientResp breaking change introduced in Twirp v1.10. (Cop disabled by default)

rubocop -r rubocop-twirp --only Twirp/DeprecatedArguments -A

Contributing

Yes please :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Ensure the tests pass (bundle exec rspec)
  4. Commit your changes (git commit -am 'awesome new feature')
  5. Push your branch (git push origin my-feature)
  6. Create a Pull Request

Resources