lib/overcommit/hook/commit_msg/text_width.rb in overcommit-0.14.1 vs lib/overcommit/hook/commit_msg/text_width.rb in overcommit-0.15.0

- old
+ new

@@ -3,12 +3,12 @@ # under the preferred limits. class TextWidth < Base def run errors = [] - max_subject_width = @config['max_subject_width'] - max_body_width = @config['max_body_width'] + max_subject_width = config['max_subject_width'] + max_body_width = config['max_body_width'] if commit_message_lines.first.size > max_subject_width errors << "Please keep the subject <= #{max_subject_width} characters" end @@ -23,9 +23,9 @@ end end return :warn, errors.join("\n") if errors.any? - :good + :pass end end end