From e5933091d9260eb6b50280ca6a220a14a371504c Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Tue, 17 Sep 2019 13:31:56 +0200 Subject: [PATCH] Add rubocop-rails gem --- .hound.yml | 2 +- .rubocop.yml | 4 +++- Gemfile | 1 + Gemfile.lock | 4 ++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.hound.yml b/.hound.yml index f7c13d4f6..1622b14ac 100644 --- a/.hound.yml +++ b/.hound.yml @@ -1,6 +1,6 @@ ruby: config_file: .rubocop.yml - version: 0.68.0 + version: 0.72.0 eslint: enabled: true diff --git a/.rubocop.yml b/.rubocop.yml index af6fc7333..24bb91425 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ -require: rubocop-performance +require: + - rubocop-performance + - rubocop-rails AllCops: Exclude: diff --git a/Gemfile b/Gemfile index 539f862ed..9784e8ff2 100644 --- a/Gemfile +++ b/Gemfile @@ -126,6 +126,7 @@ group :development, :test do gem 'rspec-rails', '>= 4.0.0.beta2' gem 'rubocop', '>= 0.59.0', require: false gem 'rubocop-performance' + gem 'rubocop-rails' gem 'timecop' end diff --git a/Gemfile.lock b/Gemfile.lock index f2fbfab4a..1b8b6a7ea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -497,6 +497,9 @@ GEM unicode-display_width (>= 1.4.0, < 1.7) rubocop-performance (1.4.1) rubocop (>= 0.71.0) + rubocop-rails (2.3.2) + rack (>= 1.1) + rubocop (>= 0.72.0) ruby-graphviz (1.2.4) ruby-progressbar (1.10.1) ruby-vips (2.0.15) @@ -677,6 +680,7 @@ DEPENDENCIES rspec-rails (>= 4.0.0.beta2) rubocop (>= 0.59.0) rubocop-performance + rubocop-rails ruby-graphviz (~> 1.2) rubyzip rufus-scheduler (~> 3.5)