Allow additional arguments to run_formatter

This commit is contained in:
Sven Weidauer 2022-06-06 11:34:19 +02:00
parent 159c0ac25b
commit 9a18902495

View file

@ -73,9 +73,9 @@ module Git
Dir.chdir path, &block
end
def run_formatter
def run_formatter(**arguments)
in_repo do
FormatStaged.run formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test']
FormatStaged.run(**arguments, formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test'])
end
end
end