From 2a0af7ea4dfd209985002a79d5b84b9ba675c09d Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sun, 30 Oct 2022 18:34:17 +0100 Subject: [PATCH] Add rubocop-rails --- .rubocop.yml | 1 + Gemfile | 1 + Gemfile.lock | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 .rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 00000000..ea725c1b --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1 @@ +require: rubocop-rails diff --git a/Gemfile b/Gemfile index 7030ff4e..40ef98de 100644 --- a/Gemfile +++ b/Gemfile @@ -27,4 +27,5 @@ end group :development do gem 'foreman' + gem 'rubocop-rails', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 630acc9c..2cfc61a5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,6 +66,7 @@ GEM i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) + ast (2.4.2) bcrypt (3.1.18) bootsnap (1.13.0) msgpack (~> 1.2) @@ -98,6 +99,7 @@ GEM io-console (0.5.11) irb (1.4.2) reline (>= 0.3.0) + json (2.6.2) loofah (2.19.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -122,6 +124,9 @@ GEM nokogiri (1.13.9-arm64-darwin) racc (~> 1.4) orm_adapter (0.5.0) + parallel (1.22.1) + parser (3.1.2.1) + ast (~> 2.4.1) pg (1.4.4) puma (5.6.5) nio4r (~> 2.0) @@ -155,12 +160,15 @@ GEM rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) + rainbow (3.1.1) rake (13.0.6) + regexp_parser (2.6.0) reline (0.3.1) io-console (~> 0.5) responders (3.0.1) actionpack (>= 5.0) railties (>= 5.0) + rexml (3.2.5) rspec-core (3.12.0) rspec-support (~> 3.12.0) rspec-expectations (3.12.0) @@ -178,6 +186,23 @@ GEM rspec-mocks (~> 3.10) rspec-support (~> 3.10) rspec-support (3.12.0) + rubocop (1.37.1) + json (~> 2.3) + parallel (~> 1.10) + parser (>= 3.1.2.1) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.23.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.23.0) + parser (>= 3.1.1.0) + rubocop-rails (2.17.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.33.0, < 2.0) + ruby-progressbar (1.11.0) shoulda-matchers (5.2.0) activesupport (>= 5.2.0) simplecov (0.21.2) @@ -207,6 +232,7 @@ GEM railties (>= 6.0.0) tzinfo (2.0.5) concurrent-ruby (~> 1.0) + unicode-display_width (2.3.0) warden (1.2.9) rack (>= 2.0.9) websocket-driver (0.7.5) @@ -229,6 +255,7 @@ DEPENDENCIES puma (~> 5.0) rails (= 7.0.4) rspec-rails (~> 5.1.0) + rubocop-rails shoulda-matchers (~> 5.1) simplecov (~> 0.21) sprockets-rails