]> cat aescling's git repositories - mastodon.git/commitdiff
Use rubocop-rails (#10957)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Tue, 4 Jun 2019 13:25:52 +0000 (22:25 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 4 Jun 2019 13:25:52 +0000 (15:25 +0200)
.codeclimate.yml
.rubocop.yml
Gemfile
Gemfile.lock

index a704597649c32e233953cd0e9851c64fbff15256..143b12330e5f0ed5716c29c8f0bfd924d536c47f 100644 (file)
@@ -30,7 +30,7 @@ plugins:
     channel: eslint-5
   rubocop:
     enabled: true
-    channel: rubocop-0-54
+    channel: rubocop-0-71
   scss-lint:
     enabled: true
 exclude_patterns:
index f1095e02245a996e1aafa1730f80546c3450a564..f34272734c8c755d5eec05836874fb90321c9673 100644 (file)
@@ -1,3 +1,6 @@
+require:
+  - rubocop-rails
+
 AllCops:
   TargetRubyVersion: 2.3
   Exclude:
diff --git a/Gemfile b/Gemfile
index 496c1baf408f8ae8efe89f87887d88f171e46d28..852e184b2144c2358cb67f82c645cecfcae3af78 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -129,6 +129,7 @@ group :development do
   gem 'letter_opener_web', '~> 1.3'
   gem 'memory_profiler'
   gem 'rubocop', '~> 0.71', require: false
+  gem 'rubocop-rails', '~> 2.0', require: false
   gem 'brakeman', '~> 4.5', require: false
   gem 'bundler-audit', '~> 0.6', require: false
   gem 'scss_lint', '~> 0.58', require: false
index 30ee4c481a72aa06139f35764856f29deeedfd35..75257133dc79d6be3a236c0deba9d639f5c69d1f 100644 (file)
@@ -534,6 +534,9 @@ GEM
       rainbow (>= 2.2.2, < 4.0)
       ruby-progressbar (~> 1.7)
       unicode-display_width (>= 1.4.0, < 1.7)
+    rubocop-rails (2.0.0)
+      rack (>= 2.0)
+      rubocop (>= 0.70.0)
     ruby-progressbar (1.10.1)
     ruby-saml (1.9.0)
       nokogiri (>= 1.5.10)
@@ -746,6 +749,7 @@ DEPENDENCIES
   rspec-rails (~> 3.8)
   rspec-sidekiq (~> 3.0)
   rubocop (~> 0.71)
+  rubocop-rails (~> 2.0)
   sanitize (~> 5.0)
   scss_lint (~> 0.58)
   sidekiq (~> 5.2)