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

Version Path
git-lint-6.2.1 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-6.2.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-6.1.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-6.0.2 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-6.0.1 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-6.0.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.3.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.2.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.1.2 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.1.1 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.1.0 lib/git/lint/analyzers/commit_author_capitalization.rb
git-lint-5.0.0 lib/git/lint/analyzers/commit_author_capitalization.rb