From 26ebce7b0074fd7812635503c7ab92b61d37501e Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 23 May 2019 15:03:16 +0200 Subject: [PATCH] Add rubocop-rails --- .rubocop.yml | 4 +++- Gemfile | 1 + Gemfile.lock | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 34c74c8..472e0f0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ -require: rubocop-performance +require: + - rubocop-performance + - rubocop-rails # Stolen from https://gist.github.com/jhass/a5ae80d87f18e53e7b56 AllCops: diff --git a/Gemfile b/Gemfile index 2196a9d..0f5f62d 100644 --- a/Gemfile +++ b/Gemfile @@ -58,6 +58,7 @@ group :development do gem 'railroady' gem 'rubocop' gem 'rubocop-performance' + gem 'rubocop-rails' gem 'solargraph' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' diff --git a/Gemfile.lock b/Gemfile.lock index 9f6f643..c9351c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -204,6 +204,9 @@ GEM unicode-display_width (>= 1.4.0, < 1.7) rubocop-performance (1.3.0) rubocop (>= 0.68.0) + rubocop-rails (2.0.0) + rack (>= 2.0) + rubocop (>= 0.70.0) ruby-progressbar (1.10.0) ruby_dep (1.5.0) shoulda-matchers (4.0.1) @@ -281,6 +284,7 @@ DEPENDENCIES rspec-rails rubocop rubocop-performance + rubocop-rails shoulda-matchers solargraph spring