module Overcommit::Hook::Shared::Pronto
Constants
- MESSAGE_TYPE_CATEGORIZER
Public Instance Methods
run()
click to toggle source
# File lib/overcommit/hook/shared/pronto.rb, line 10 def run result = execute(command) return :pass if result.success? extract_messages( result.stdout.split("\n"), /^(?<file>(?:\w:)?[^:]+):(?<line>\d+) (?<type>[^ ]+)/, MESSAGE_TYPE_CATEGORIZER, ) end