Skip to content

Commit 4d7e950

Browse files
committed
configure rubocop
add rubocop-rails don't require rubocop or brakeman
1 parent 8e66c4b commit 4d7e950

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.rubocop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require: rubocop-rails
2+
3+
AllCops:
4+
NewCops: enable

Gemfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ gem 'net-ssh'
6565
gem 'ed25519'
6666
gem 'bcrypt_pbkdf'
6767

68-
gem 'rubocop'
69-
gem 'brakeman'
68+
gem 'rubocop', require: false
69+
gem 'rubocop-rails', require: false
70+
gem 'brakeman', require: false

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ GEM
239239
unicode-display_width (>= 1.4.0, < 3.0)
240240
rubocop-ast (1.4.1)
241241
parser (>= 2.7.1.5)
242+
rubocop-rails (2.9.1)
243+
activesupport (>= 4.2.0)
244+
rack (>= 1.1)
245+
rubocop (>= 0.90.0, < 2.0)
242246
ruby-progressbar (1.11.0)
243247
ruby_dep (1.5.0)
244248
rubyzip (2.3.0)
@@ -341,6 +345,7 @@ DEPENDENCIES
341345
rails (~> 6.1.1)
342346
railties (>= 6.0.0)
343347
rubocop
348+
rubocop-rails
344349
sass-rails (~> 5.0)
345350
selenium-webdriver
346351
sidekiq

0 commit comments

Comments
 (0)