lib/overcommit/hook/pre_commit/xml_lint.rb in overcommit-0.58.0 vs lib/overcommit/hook/pre_commit/xml_lint.rb in overcommit-0.59.0
- old
+ new
@@ -3,10 +3,10 @@
module Overcommit::Hook::PreCommit
# Runs `xmllint` against any modified XML files.
#
# @see http://xmlsoft.org/xmllint.html
class XmlLint < Base
- MESSAGE_REGEX = /^(?<file>(?:\w:)?[^:]+):(?<line>\d+):/
+ MESSAGE_REGEX = /^(?<file>(?:\w:)?[^:]+):(?<line>\d+):/.freeze
def run
result = execute(command, args: applicable_files)
output = result.stderr.chomp