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) ⇒ 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, **)
  super(**)
  @collector = collector
end

Instance Method Details

#to_sObject Also known as: to_str



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

def to_s
  "Running Git Lint...#{branch_report}\n" \
  "#{commit_total}. #{issue_totals}.\n"
end