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

Version Path
git-lint-8.8.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.7.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.6.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.5.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.4.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.3.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.2.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.1.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-8.0.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-7.5.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-7.3.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-7.2.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-7.1.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-7.0.0 lib/git/lint/analyzers/commit_author_capitalization.rb