Skip to content

Commit e801f7d

Browse files
committed
Disable Roubocop for heroku_clear_tasks file
1 parent c958543 commit e801f7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/language_pack/test/rails2.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def db_test_tasks_to_clear
3636
def clear_db_test_tasks
3737
FileUtils::mkdir_p 'lib/tasks'
3838
File.open("lib/tasks/heroku_clear_tasks.rake", "w") do |file|
39+
file.puts "# rubocop:disable all"
3940
content = db_test_tasks_to_clear.map do |task_name|
4041
<<-FILE
4142
Rake::Task['#{task_name}'].clear
@@ -44,6 +45,7 @@ def clear_db_test_tasks
4445
FILE
4546
end.join("\n")
4647
file.print content
48+
file.puts "# rubocop:enable all"
4749
end
4850
end
4951

0 commit comments

Comments
 (0)