浏览代码

require rubocop-rails in .rubocop.yml (#10974)

* Revert "Revert #10957 (rubocop-rails) which is incompatible with CodeClimate (#10965)"

This reverts commit 121d19d7fa.

* Disable Rails/HelperInstanceVariable
mp-additions
Yamagishi Kazutoshi 5 个月前
父节点
当前提交
70423ce81f
共有 3 个文件被更改,包括 11 次插入0 次删除
  1. 6
    0
      .rubocop.yml
  2. 1
    0
      Gemfile
  3. 4
    0
      Gemfile.lock

+ 6
- 0
.rubocop.yml 查看文件

@@ -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


+ 1
- 0
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


+ 4
- 0
Gemfile.lock 查看文件

@@ -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)

正在加载...
取消
保存