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

- old
+ new

@@ -3,10 +3,10 @@ module Overcommit::Hook::PreCommit # Runs 'puppet-lint' against any modified Puppet files. # # @see http://puppet-lint.com/ class PuppetLint < Base - MESSAGE_REGEX = /(?<file>(?:\w:)?.+):(?<line>\d+):\d+:(?<type>\w+)/ + MESSAGE_REGEX = /(?<file>(?:\w:)?.+):(?<line>\d+):\d+:(?<type>\w+)/.freeze MESSAGE_TYPE_CATEGORIZER = lambda do |type| type == 'ERROR' ? :error : :warning end