From f134a5f9d80672eb086aa29bb8eecc901da6b752 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 12 Jul 2023 03:47:54 -0400 Subject: [PATCH] Run Rubocop on Rakefile (#23871) --- .rubocop.yml | 1 - Rakefile | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 5c109a7e52..597dfcb9e0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -24,7 +24,6 @@ AllCops: Exclude: - db/schema.rb - 'bin/*' - - 'Rakefile' - 'node_modules/**/*' - 'Vagrantfile' - 'vendor/**/*' diff --git a/Rakefile b/Rakefile index ba6b733dd2..e51cf0e17e 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,8 @@ +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. -require File.expand_path('../config/application', __FILE__) +require File.expand_path('config/application', __dir__) Rails.application.load_tasks