]> git.openstreetmap.org Git - rails.git/commitdiff
Add rubocop-performance
authorTom Hughes <tom@compton.nu>
Tue, 23 Apr 2019 08:29:31 +0000 (09:29 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 23 Apr 2019 08:33:34 +0000 (09:33 +0100)
.rubocop.yml
Gemfile
Gemfile.lock

index 690d984f74ad8c94962a24c2224c2107fcbe4841..d5ee8ff383722193f5769416d431faea2c3521c4 100644 (file)
@@ -1,5 +1,7 @@
 inherit_from: .rubocop_todo.yml
 
+require: rubocop-performance
+
 AllCops:
   TargetRubyVersion: 2.5
 
diff --git a/Gemfile b/Gemfile
index 1099cfd854efb3203267a0723f9e1c02b366dd35..6c93b96dde3b507afcc69dbcef49848f00d5c997 100644 (file)
--- 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
 
index ef92777611921a9f467bc9cce6239561ffb9513b..e0874f1e856debb88467602e4c65a4c8a34dd494 100644 (file)
@@ -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