]> git.openstreetmap.org Git - rails.git/commitdiff
Add rubocop-rails
authorTom Hughes <tom@compton.nu>
Wed, 5 Jun 2019 07:51:08 +0000 (08:51 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 5 Jun 2019 07:51:27 +0000 (08:51 +0100)
.rubocop.yml
Gemfile
Gemfile.lock

index d5ee8ff383722193f5769416d431faea2c3521c4..5bf565c31f5060642551ea1c82dcd3d51740a3ef 100644 (file)
@@ -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 073ccb5a66dab3ad01e863d5d60e3ae569b46df4..f0e3885033c0f4ac4bd22a136064b403639c2ce1 100644 (file)
--- 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
 
index f21148fee790a1cc3e3721a7c3a07284ee9dbe6e..de5157c0489f70b845895d3663b1eb1f0bd8d306 100644 (file)
@@ -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