Skip to content

kakubin/rubocop-grape

Repository files navigation

RuboCop Grape

Actions Status

RuboCop extension for 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.

require: rubocop-grape

Alternatively, use the following array notation when specifying multiple extensions.

require:
  - rubocop-other-extension
  - rubocop-grape

Now you can run rubocop and it will automatically load the RuboCop Grape cops together with the standard cops.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kakubin/rubocop-grape.