lib/git/lint/analyzers/commit_body_presence.rb in git-lint-6.2.1 vs lib/git/lint/analyzers/commit_body_presence.rb in git-lint-7.0.0

- old
+ new

@@ -1,13 +1,13 @@ # frozen_string_literal: true module Git module Lint module Analyzers - # Analyzes pretense of commit body. + # Analyzes presence of commit body. class CommitBodyPresence < Abstract - using ::Refinements::Strings + using Refinements::String def valid? return true if commit.fixup? valid_lines = commit.body_lines.grep_v(/^\s*$/) @@ -17,10 +17,10 @@ def minimum = configuration.commits_body_presence_minimum def issue return {} if valid? - {hint: %(Use minimum of #{"#{minimum} line".pluralize "s", count: minimum} (non-empty).)} + {hint: %(Use minimum of #{"#{minimum} line".pluralize "s", minimum} (non-empty).)} end end end end end