diff --git a/.rubocop.yml b/.rubocop.yml index 10908d8..a34f68f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-performance + AllCops: TargetRubyVersion: 2.6 DisplayCopNames: true diff --git a/Gemfile b/Gemfile index f097b2b..072399d 100644 --- a/Gemfile +++ b/Gemfile @@ -121,6 +121,10 @@ group :development, :test do # Aims to enforce the community-driven Ruby Style Guide. gem 'rubocop', '~> 0.67.2' + # A collection of RuboCop cops + # to check for performance optimizations in Ruby code. + gem 'rubocop-performance', '~> 1.1' + # rspec-rails is a testing framework for Rails 3+ gem 'rspec-rails', '~> 3.8' diff --git a/Gemfile.lock b/Gemfile.lock index c5138d0..f00bb43 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -342,6 +342,8 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.6) + rubocop-performance (1.1.0) + rubocop (>= 0.67.0) ruby-graphviz (1.2.4) ruby-progressbar (1.10.0) ruby_dep (1.5.0) @@ -480,6 +482,7 @@ DEPENDENCIES rolify (~> 5.2) rspec-rails (~> 3.8) rubocop (~> 0.67.2) + rubocop-performance (~> 1.1) sass-rails (~> 5.0) selenium-webdriver (~> 3.14) sentry-raven