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.



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

def initialize(collector: Collector.new, **)
  super(**)
  @collector = collector
end

Instance Method Details

#to_sObject Also known as: to_str



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

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