Sha256: ed7161310ee7d65d3710292d0923047be9adf53f220a265f414d9aa6bf899971
Contents?: true
Size: 468 Bytes
Versions: 14
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes author name for proper capitalization. class CommitAuthorCapitalization < Abstract include Import[validator: "validators.capitalization"] def valid? = validator.call commit.author_name def issue return {} if valid? {hint: %(Capitalize each part of name: "#{commit.author_name}".)} end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems