Sha256: 500ce36d0498d911c91c159e9908b74d665103677e3043ebb1e510d5e04e9f11
Contents?: true
Size: 677 Bytes
Versions: 9
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit bodies with only a single bullet point. class CommitBodyBulletOnly < Abstract def valid? = !affected_commit_body_lines.one? 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.commits_body_bullet_only_includes end def invalid_line?(line) = line.match?(/\A#{Regexp.union filter_list}\s+/) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems