Sha256: 5b30bb935d30ff154b0bf50690b1f7e43b24c68cce5d3390eaf03cbb4b18eaa5
Contents?: true
Size: 649 Bytes
Versions: 22
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit bodies with only a single bullet point. class CommitBodySingleBullet < Abstract def valid? = affected_commit_body_lines.size != 1 def issue return {} if valid? { hint: "Use paragraph instead of single bullet.", lines: affected_commit_body_lines } end protected def load_filter_list = Kit::FilterList.new(settings.includes) def invalid_line?(line) = line.match?(/\A#{Regexp.union filter_list.to_regexp}\s+/) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems