lib/overcommit/hook/pre_commit/reek.rb in overcommit-0.25.0 vs lib/overcommit/hook/pre_commit/reek.rb in overcommit-0.26.0
- old
+ new
@@ -1,16 +1,18 @@
module Overcommit::Hook::PreCommit
# Runs `reek` against any modified Ruby files.
+ #
+ # @see https://github.com/troessner/reek
class Reek < Base
def run
result = execute(command + applicable_files)
return :pass if result.success?
output = scrub_output(result.stdout + result.stderr)
extract_messages(
output,
- /^(?<file>[^:]+):(?<line>\d+):/,
+ /^\s*(?<file>[^:]+):(?<line>\d+):/,
)
end
private