Skip to content

Commit

Permalink
Merge pull request #755 from heroku/schneems/fix-rubocop-ci-error
Browse files Browse the repository at this point in the history
Disable listing check for disabling cops
  • Loading branch information
schneems authored Sep 12, 2019
2 parents 5fda279 + e08249a commit 6d41fb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/language_pack/test/rails2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def db_test_tasks_to_clear
def clear_db_test_tasks
FileUtils::mkdir_p 'lib/tasks'
File.open("lib/tasks/heroku_clear_tasks.rake", "w") do |file|
file.puts "# rubocop:disable Lint/UnneededCopDisableDirective"
file.puts "# rubocop:disable all"
content = db_test_tasks_to_clear.map do |task_name|
<<-FILE
Expand All @@ -48,6 +49,7 @@ def clear_db_test_tasks
end.join("\n")
file.print content
file.puts "# rubocop:enable all"
file.puts "# rubocop:enable Lint/UnneededCopDisableDirective"
end
end

Expand Down

0 comments on commit 6d41fb1

Please sign in to comment.