Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/corp-gp/rubocop-gp

GP specific analysis for RuboCop
https://github.com/corp-gp/rubocop-gp

Last synced: 10 days ago
JSON representation

GP specific analysis for RuboCop

Awesome Lists containing this project

README

        

## About
This gem inspired https://github.com/airbnb/ruby, but reconfigurable cops and no lock versions of `rubocop`, `rubocop-*`

## Installation

Add this line to your application's Gemfile:

```ruby
group :development do
gem 'rubocop-gp', github: 'corp-gp/rubocop-gp'
end
```

And then run:

```bash
$ bundle install
```

## Usage

Create a `.rubocop.yml` with the following directives:

```yaml
inherit_gem:
rubocop-gp:
- .rubocop.yml
```

Now, run:

```bash
$ bin/bundle exec rubocop
```

You do not need to include rubocop directly in your application's dependences. This gem will include:
- [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec)
- [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails)
- [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance)