Class: Git::Lint::Analyzers::CommitTrailerCollaboratorCapitalization
- Inherits:
-
Abstract
- Object
- Abstract
- Git::Lint::Analyzers::CommitTrailerCollaboratorCapitalization
- Defined in:
- lib/git/lint/analyzers/commit_trailer_collaborator_capitalization.rb
Overview
Analyzes commit trailer collaborator name capitalization.
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_collaborator_capitalization.rb', line 16 def issue return {} if valid? { hint: "Name must be capitalized.", lines: affected_commit_trailers } end |
#valid? ⇒ Boolean
14 |
# File 'lib/git/lint/analyzers/commit_trailer_collaborator_capitalization.rb', line 14 def valid? = affected_commit_trailers.empty? |