lib/overcommit/hook/pre_commit/slim_lint.rb in overcommit-0.27.0 vs lib/overcommit/hook/pre_commit/slim_lint.rb in overcommit-0.28.0
- old
+ new
@@ -6,15 +6,15 @@
MESSAGE_TYPE_CATEGORIZER = lambda do |type|
type.include?('W') ? :warning : :error
end
def run
- result = execute(command + applicable_files)
+ result = execute(command, args: applicable_files)
return :pass if result.success?
extract_messages(
result.stdout.split("\n"),
- /^(?<file>[^:]+):(?<line>\d+)[^ ]* (?<type>[^ ]+)/,
+ /^(?<file>(?:\w:)?[^:]+):(?<line>\d+)[^ ]* (?<type>[^ ]+)/,
MESSAGE_TYPE_CATEGORIZER,
)
end
end
end