Skip to content

Commit 2b09327

Browse files
authored
Merge pull request rails#49794 from fatkodima/enable-interpolation_check-cop
Enable `Lint/InterpolationCheck` rubocop's cop
2 parents dad3381 + af8f002 commit 2b09327

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ Lint/UselessAssignment:
257257
Lint/DeprecatedClassMethods:
258258
Enabled: true
259259

260+
Lint/InterpolationCheck:
261+
Enabled: true
262+
Exclude:
263+
- '**/test/**/*'
264+
260265
Style/EvalWithLocation:
261266
Enabled: true
262267
Exclude:

activerecord/lib/active_record/railties/databases.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ db_namespace = namespace :db do
195195

196196
namespace :up do
197197
ActiveRecord::Tasks::DatabaseTasks.for_each(databases) do |name|
198-
desc 'Run the "up" on #{name} database for a given migration VERSION.'
198+
desc "Run the \"up\" on #{name} database for a given migration VERSION."
199199
task name => :load_config do
200200
raise "VERSION is required" if !ENV["VERSION"] || ENV["VERSION"].empty?
201201

@@ -226,7 +226,7 @@ db_namespace = namespace :db do
226226

227227
namespace :down do
228228
ActiveRecord::Tasks::DatabaseTasks.for_each(databases) do |name|
229-
desc 'Run the "down" on #{name} database for a given migration VERSION.'
229+
desc "Run the \"down\" on #{name} database for a given migration VERSION."
230230
task name => :load_config do
231231
raise "VERSION is required" if !ENV["VERSION"] || ENV["VERSION"].empty?
232232

0 commit comments

Comments
 (0)