diff --git a/.rubocop.yml b/.rubocop.yml index a0170f78..3b581c19 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-performance + AllCops: Exclude: - db/schema.rb diff --git a/Gemfile b/Gemfile index 3eb10ec7..a9d776ac 100644 --- a/Gemfile +++ b/Gemfile @@ -101,6 +101,7 @@ group :development do gem 'guard-rubocop', require: false gem 'haml_lint' gem 'rack-livereload' + gem 'rubocop-performance' # Security checks gem 'brakeman', require: false gem 'guard-brakeman', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 95165b4d..9eb6c187 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -272,7 +272,7 @@ GEM activerecord (>= 4.2, < 6.1) request_store (~> 1.1) parallel (1.17.0) - parser (2.6.2.1) + parser (2.6.3.0) ast (~> 2.4.0) piwik_analytics (1.0.2) actionpack @@ -283,7 +283,6 @@ GEM pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) - psych (3.1.0) public_suffix (3.0.3) puma (3.12.1) rack (2.0.7) @@ -347,14 +346,15 @@ GEM responders (2.4.1) actionpack (>= 4.2.0, < 6.0) railties (>= 4.2.0, < 6.0) - rubocop (0.67.2) + rubocop (0.68.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) parser (>= 2.5, != 2.5.1.1) - psych (>= 3.1.0) 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-progressbar (1.10.0) ruby_dep (1.5.0) ruby_parser (3.13.1) @@ -499,6 +499,7 @@ DEPENDENCIES rails-assets-leaflet.markercluster! rails-controller-testing rails-i18n + rubocop-performance sassc-rails sdoc simple_calendar