lib/overcommit/hook/pre_commit/scalastyle.rb in overcommit-jeygeethanmedia-0.53.1.2 vs lib/overcommit/hook/pre_commit/scalastyle.rb in overcommit-jeygeethanmedia-0.58.0

- old
+ new

@@ -8,10 +8,10 @@ MESSAGE_REGEX = / ^(?<type>error|warning)\s file=(?<file>(?:\w:)?.+)\s message=.+\s* (line=(?<line>\d+))? - /x + /x.freeze def run result = execute(command, args: applicable_files) output = result.stdout.chomp + result.stderr.chomp messages = output.split("\n").grep(MESSAGE_REGEX)