]> cat aescling's git repositories - mastodon.git/commitdiff
require rubocop-rails in .rubocop.yml (#10974)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Thu, 6 Jun 2019 10:31:48 +0000 (19:31 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Jun 2019 10:31:48 +0000 (12:31 +0200)
* Revert "Revert #10957 (rubocop-rails) which is incompatible with CodeClimate (#10965)"

This reverts commit 121d19d7fa239c52ce86352d3fdae0649c892a20.

* Disable Rails/HelperInstanceVariable

.rubocop.yml
Gemfile
Gemfile.lock

index f1095e02245a996e1aafa1730f80546c3450a564..8bd4c867f41c710243f0cb744ba538957b6320d8 100644 (file)
@@ -1,3 +1,6 @@
+require:
+  - rubocop-rails
+
 AllCops:
   TargetRubyVersion: 2.3
   Exclude:
@@ -82,6 +85,9 @@ Rails/Exit:
     - 'lib/mastodon/*'
     - 'lib/cli.rb'
 
+Rails/HelperInstanceVariable:
+  Enabled: false
+
 Style/ClassAndModuleChildren:
   Enabled: false
 
diff --git a/Gemfile b/Gemfile
index 62d5ae1f74210017d4592e1aa1730c44b5176de3..4fd981f753a97351250083cb63bea635d0264c7e 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
 
index 2d451be83d5882db0ef0dbaaca1e2b461daae6c6..d8a68d8c9d8fcfbe770362f7c74e032b3a755813 100644 (file)
@@ -531,6 +531,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)
@@ -735,6 +738,7 @@ DEPENDENCIES
   rspec-rails (~> 3.8)
   rspec-sidekiq (~> 3.0)
   rubocop (~> 0.71)
+  rubocop-rails (~> 2.0)
   sanitize (~> 5.0)
   sidekiq (~> 5.2)
   sidekiq-bulk (~> 0.2.0)