From 0d936de9c90f0bf7ab9fe672c3ca8c7397d9ac85 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 5 Jun 2019 08:51:08 +0100 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 d5ee8ff38..5bf565c31 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,8 @@ inherit_from: .rubocop_todo.yml -require: rubocop-performance +require: + - rubocop-performance + - rubocop-rails AllCops: TargetRubyVersion: 2.5 diff --git a/Gemfile b/Gemfile index 073ccb5a6..f0e388503 100644 --- a/Gemfile +++ b/Gemfile @@ -139,6 +139,7 @@ group :test do gem "rails-controller-testing" gem "rubocop" gem "rubocop-performance" + gem "rubocop-rails" gem "webmock" end diff --git a/Gemfile.lock b/Gemfile.lock index f21148fee..de5157c04 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -374,6 +374,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-openid (2.7.0) ruby-progressbar (1.10.1) ruby_dep (1.5.0) @@ -509,6 +512,7 @@ DEPENDENCIES rotp rubocop rubocop-performance + rubocop-rails sanitize sassc-rails secure_headers -- 2.39.5