Class: Git::Lint::Reporters::Branch

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

Overview

Reports issues related to a single branch.

Instance Method Summary collapse

Constructor Details

#initialize(collector: Collector.new, colorizer: Pastel.new) ⇒ Branch

Returns a new instance of Branch.



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

def initialize collector: Collector.new, colorizer: Pastel.new
  @collector = collector
  @colorizer = colorizer
end

Instance Method Details

#to_sObject



17
18
19
20
# File 'lib/git/lint/reporters/branch.rb', line 17

def to_s
  "Running #{Identity::LABEL}...#{branch_report}\n" \
  "#{commit_total}. #{issue_totals}.\n"
end