Slightly improve boot time

rubocop and lefthook gems are added to the Gemfile for convenience, but
are not needed on runtime. Not requiring them saves some memory
allocations and boot time.
This commit is contained in:
Christophe Bliard
2022-07-01 15:41:40 +02:00
parent 005f536ce0
commit 418b344dc4
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -291,12 +291,12 @@ group :development, :test do
gem 'pry-stack_explorer', '~> 0.6.0'
# ruby linting
gem 'rubocop'
gem 'rubocop-rails'
gem 'rubocop-rspec'
gem 'rubocop', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
# git hooks manager
gem 'lefthook'
gem 'lefthook', require: false
# Brakeman scanner
gem 'brakeman', '~> 5.2.0'
@@ -26,6 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
require 'rubocop'
require 'rubocop/rspec/shared_contexts'
require 'spec_helper'
require 'rubocop/rspec/support'