Class: Lintrunner::Reporter::Context

Inherits:
Text
  • Object
show all
Defined in:
lib/lintrunner/reporter/context.rb

Instance Attribute Summary

Attributes inherited from Base

#path

Instance Method Summary collapse

Methods inherited from Text

#finish, #start

Methods inherited from Base

#description, #finish, #initialize, #start

Constructor Details

This class inherits a constructor from Lintrunner::Reporter::Base

Instance Method Details

#report(message) ⇒ Object



5
6
7
8
9
# File 'lib/lintrunner/reporter/context.rb', line 5

def report(message)
  puts "#{location(message)} #{message.description} #{message_name(message)}"
  puts context(message)
  puts
end