Sha256: e5f4f58bdacd32812d0645331307115e45868f1d5315bd0e6166c29fdf5789db

Contents?: true

Size: 465 Bytes

Versions: 26

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Analyzers
      # Analyzes author email address for proper format.
      class CommitAuthorEmail < Abstract
        include Import[validator: "validators.email"]

        def valid? = validator.call commit.author_email

        def issue
          return {} if valid?

          {hint: %(Use "<name>@<server>.<domain>" instead of "#{commit.author_email}".)}
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
git-lint-8.8.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.7.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.6.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.5.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.4.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.3.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.2.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.1.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-8.0.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-7.5.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-7.3.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-7.2.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-7.1.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-7.0.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.2.1 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.2.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.1.0 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.0.2 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.0.1 lib/git/lint/analyzers/commit_author_email.rb
git-lint-6.0.0 lib/git/lint/analyzers/commit_author_email.rb