From 81e0b49ed55abb1a4563648273639214c26bcf95 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 23 Apr 2019 09:29:31 +0100 Subject: [PATCH] Add rubocop-performance --- .rubocop.yml | 2 ++ Gemfile | 1 + Gemfile.lock | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 690d984f7..d5ee8ff38 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,7 @@ inherit_from: .rubocop_todo.yml +require: rubocop-performance + AllCops: TargetRubyVersion: 2.5 diff --git a/Gemfile b/Gemfile index 1099cfd85..6c93b96dd 100644 --- a/Gemfile +++ b/Gemfile @@ -137,6 +137,7 @@ group :test do gem "minitest", "~> 5.1", :platforms => [:ruby_19, :ruby_20] gem "rails-controller-testing" gem "rubocop" + gem "rubocop-performance" gem "webmock" end diff --git a/Gemfile.lock b/Gemfile.lock index ef9277761..e0874f1e8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -373,6 +373,8 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.6) + rubocop-performance (1.1.0) + rubocop (>= 0.67.0) ruby-openid (2.7.0) ruby-progressbar (1.10.0) ruby_dep (1.5.0) @@ -505,6 +507,7 @@ DEPENDENCIES rinku (>= 2.0.6) rotp rubocop + rubocop-performance sanitize sassc-rails secure_headers -- 2.39.5