lib/overcommit/hook/pre_commit/php_cs.rb in overcommit-0.46.0 vs lib/overcommit/hook/pre_commit/php_cs.rb in overcommit-0.47.0
- old
+ new
@@ -1,4 +1,6 @@
+# frozen_string_literal: true
+
module Overcommit::Hook::PreCommit
# Runs `phpcs` against any modified PHP files.
class PhpCs < Base
# Parse `phpcs` csv mode output
MESSAGE_REGEX = /^\"(?<file>.+)\",(?<line>\d+),\d+,(?<type>.+),\"(?<msg>.+)\"/