RuboCop Grape
Installation
Add this line to your application's Gemfile:
gem 'rubocop-grape'And then execute:
$ bundle install
Usage
You need to tell RuboCop to load the Grape extension. There are three ways to do this:
RuboCop configuration file
Put this into your .rubocop.yml.
plugins: rubocop-grapeAlternatively, use the following array notation when specifying multiple extensions.
plugins:
- rubocop-other-extension
- rubocop-grapeNow you can run rubocop and it will automatically load the RuboCop Grape
cops together with the standard cops.
Note
The plugin system is supported in RuboCop 1.72+. In earlier versions, use require instead of plugins.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kakubin/rubocop-grape.