Class: Lintrunner::Reporter::Base

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

Direct Known Subclasses

File, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/lintrunner/reporter/base.rb', line 9

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/lintrunner/reporter/base.rb', line 7

def path
  @path
end

Instance Method Details

#descriptionObject

The description of this reporter. Used for CLI when listing possible reporters



26
# File 'lib/lintrunner/reporter/base.rb', line 26

def description; end

#finish(messages) ⇒ Object

Called when the lintrunner is finished executing

Parameters:



23
# File 'lib/lintrunner/reporter/base.rb', line 23

def finish(messages); end

#report(message) ⇒ Object

Called when a message is discovered from the lintrunner

Parameters:



19
# File 'lib/lintrunner/reporter/base.rb', line 19

def report(message); end

#start(name) ⇒ Object

Called when a lintrunner is started

Parameters:

  • name (String)

    The name of the lintrunner (ex. “binding.pry check”)



15
# File 'lib/lintrunner/reporter/base.rb', line 15

def start(name); end