Sha256: 833ba35615c116e1da9ee1acb7629cc8b8b70b45d97029e8ac0fd7338015f0a9
Contents?: true
Size: 478 Bytes
Versions: 12
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes author for proper capitalization of author name. 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
12 entries across 12 versions & 1 rubygems