diff --git a/.rubocop.yml b/.rubocop.yml index 234a463d3fb..e34784660d9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,9 +1,12 @@ +require: + - rubocop-rails + - rubocop-rspec + AllCops: TargetRubyVersion: 2.7 Exclude: - db/schema.rb - Layout/ConditionPosition: Enabled: false diff --git a/Gemfile b/Gemfile index be10b6597dc..493135d6f15 100644 --- a/Gemfile +++ b/Gemfile @@ -250,6 +250,8 @@ group :development do gem 'spring-commands-rspec' gem 'rubocop' + gem 'rubocop-rails' + gem 'rubocop-rspec' # Gems for living styleguide gem 'livingstyleguide', '~> 2.1.0' diff --git a/Gemfile.lock b/Gemfile.lock index f8d0b34aa1b..06599597fd1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -799,6 +799,13 @@ GEM unicode-display_width (>= 1.4.0, < 3.0) rubocop-ast (1.4.1) parser (>= 2.7.1.5) + rubocop-rails (2.9.1) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 0.90.0, < 2.0) + rubocop-rspec (2.2.0) + rubocop (~> 1.0) + rubocop-ast (>= 1.1.0) ruby-duration (3.2.3) activesupport (>= 3.0.0) i18n @@ -1050,6 +1057,8 @@ DEPENDENCIES rspec-rails (~> 4.0.0) rspec-retry (~> 0.6.1) rubocop + rubocop-rails + rubocop-rspec ruby-duration (~> 3.2.0) ruby-prof ruby-progressbar (~> 1.11.0)