From 778c06c6575f52b2fee3950f6a724c2c211191fa Mon Sep 17 00:00:00 2001 From: Vitali Tatarintev Date: Mon, 28 Mar 2022 11:44:34 +0200 Subject: [PATCH] Fix remaining offense for Style/ExpandPathArguments --- .rubocop_todo.yml | 7 ------- config.ru | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a51e9cc1f7c322..14d028490358c1 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 f07c25f503abc7..ed77402aead6f3 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) -- GitLab