Class: Git::Lint::Analyzers::CommitTrailerSignerEmail
- Defined in:
- lib/git/lint/analyzers/commit_trailer_signer_email.rb
Overview
Analyzes commit trailer signer email address 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
16 17 18 19 20 21 22 23 |
# File 'lib/git/lint/analyzers/commit_trailer_signer_email.rb', line 16 def issue return {} if valid? { hint: %(Email must follow name and use format: "<name@server.domain>".), lines: affected_commit_trailers } end |
#valid? ⇒ Boolean
14 |
# File 'lib/git/lint/analyzers/commit_trailer_signer_email.rb', line 14 def valid? = affected_commit_trailers.empty? |