Class: Git::Lint::Analyzers::CommitAuthorEmail
- Defined in:
- lib/git/lint/analyzers/commit_author_email.rb
Overview
Analyzes author email address for proper format.
Constant Summary
Constants inherited from Abstract
Abstract::BODY_OFFSET, Abstract::LEVELS
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
build_issue_line, #error?, id, #initialize, #invalid?, label, #severity, #warning?
Constructor Details
This class inherits a constructor from Git::Lint::Analyzers::Abstract
Instance Method Details
#issue ⇒ Object
12 13 14 15 16 |
# File 'lib/git/lint/analyzers/commit_author_email.rb', line 12 def issue return {} if valid? {hint: %(Use "<name>@<server>.<domain>" instead of "#{commit.}".)} end |
#valid? ⇒ Boolean
10 |
# File 'lib/git/lint/analyzers/commit_author_email.rb', line 10 def valid? = validator.call commit. |