0.0
The project is in a healthy, maintained state
Automatic Grape code style checking tool. A RuboCop extension focused on enforcing Grape best practices and coding conventions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 1.7.0, < 2.0
 Project Readme

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.