Class: Git::Lint::Reporters::Style

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

Overview

Reports issues related to a single style.

Instance Method Summary collapse

Constructor Details

#initialize(analyzer) ⇒ Style

Returns a new instance of Style.



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

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

Instance Method Details

#to_sObject Also known as: to_str



16
# File 'lib/git/lint/reporters/style.rb', line 16

def to_s = color[message, style]