Class: Pronto::Rubocop::OffenseLine

Inherits:
Object
  • Object
show all
Defined in:
lib/pronto/rubocop/offense_line.rb

Instance Method Summary collapse

Constructor Details

#initialize(patch_cop, offense, line) ⇒ OffenseLine

Returns a new instance of OffenseLine.



6
7
8
9
10
# File 'lib/pronto/rubocop/offense_line.rb', line 6

def initialize(patch_cop, offense, line)
  @patch_cop = patch_cop
  @offense = offense
  @line = line
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/pronto/rubocop/offense_line.rb', line 12

def message
  Message.new(path, line, level, message_text, nil, Pronto::Rubocop)
end