Class: Git::Lint::Reporters::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/git/lint/reporters/group.rb

Overview

Reports issue for a group of references.

Instance Method Summary collapse

Constructor Details

#initialize(analyzer) ⇒ Group

Returns a new instance of Group.



12
13
14
15
16
# File 'lib/git/lint/reporters/group.rb', line 12

def initialize(analyzer, **)
  super(**)
  @analyzer = analyzer
  @issue = analyzer.issue
end

Instance Method Details

#to_sObject Also known as: to_str



18
19
20
21
22
# File 'lib/git/lint/reporters/group.rb', line 18

def to_s
  return Core::EMPTY_STRING if issue.empty?

  color[message, style]
end