Sha256: 9ec5f5c530e5ff11263278ab80a34de3bfbd028d68d2d2f4e32818657e52841c
Contents?: true
Size: 608 Bytes
Versions: 8
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes author for proper capitalization of author name. class CommitAuthorCapitalization < Abstract def initialize commit, validator: Validators::Capitalization super commit @validator = validator end def valid? = validator.new(commit.author_name).valid? def issue return {} if valid? {hint: %(Capitalize each part of name: "#{commit.author_name}".)} end private attr_reader :validator end end end end
Version data entries
8 entries across 8 versions & 1 rubygems