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

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

Overview

Reports issues related to a single branch.

Constant Summary collapse

DELEGATES =
{individual: Individual, group: Group}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(total: Models::Total.new, delegates: DELEGATES) ⇒ Branch

Returns a new instance of Branch.



20
21
22
23
24
# File 'lib/git/lint/reporters/branch.rb', line 20

def initialize(total: Models::Total.new, delegates: DELEGATES, **)
  super(**)
  @total = total
  @delegates = delegates
end

Instance Method Details

#to_sObject Also known as: to_str



26
27
28
29
# File 'lib/git/lint/reporters/branch.rb', line 26

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