diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a51e9cc1f7c322082c89ef4c453a92aeaa53f3d5..14d028490358c11bd2efdf2ffd1299e36aec2969 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -471,13 +471,6 @@ Style/EmptyElse: Style/EmptyMethod: Enabled: false -# Offense count: 2 -# Cop supports --auto-correct. -Style/ExpandPathArguments: - Exclude: - - 'cable/config.ru' - - 'config.ru' - # Offense count: 118 # Cop supports --auto-correct. Style/ExplicitBlockArgument: diff --git a/config.ru b/config.ru index f07c25f503abc7ed4d45c7fc806aa474cc29ae65..ed77402aead6f3f34f3fbb381298b7ca3f6bc4b2 100644 --- a/config.ru +++ b/config.ru @@ -2,7 +2,7 @@ # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) +require ::File.expand_path('config/environment', __dir__) warmup do |app| client = Rack::MockRequest.new(app)