diff --git a/.rubocop.yml b/.rubocop.yml index bfbb3af..34c74c8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-performance + # Stolen from https://gist.github.com/jhass/a5ae80d87f18e53e7b56 AllCops: Exclude: diff --git a/Gemfile b/Gemfile index dc06bea..2196a9d 100644 --- a/Gemfile +++ b/Gemfile @@ -57,6 +57,7 @@ group :development do # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'railroady' gem 'rubocop' + gem 'rubocop-performance' gem 'solargraph' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' diff --git a/Gemfile.lock b/Gemfile.lock index 02aa2fe..03ff1a8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -202,6 +202,8 @@ GEM rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.6) + rubocop-performance (1.2.0) + rubocop (>= 0.68.0) ruby-progressbar (1.10.0) ruby_dep (1.5.0) shoulda-matchers (4.0.1) @@ -278,6 +280,7 @@ DEPENDENCIES rails (~> 5.2.1) rspec-rails rubocop + rubocop-performance shoulda-matchers solargraph spring