Class: Lintrunner::Reporter::Base
- Inherits:
-
Object
- Object
- Lintrunner::Reporter::Base
- Defined in:
- lib/lintrunner/reporter/base.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#description ⇒ Object
The description of this reporter.
-
#finish(messages) ⇒ Object
Called when the lintrunner is finished executing.
-
#initialize(path) ⇒ Base
constructor
A new instance of Base.
-
#report(message) ⇒ Object
Called when a message is discovered from the lintrunner.
-
#start(name) ⇒ Object
Called when a lintrunner is started.
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
#path ⇒ Object (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
#description ⇒ Object
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
23 |
# File 'lib/lintrunner/reporter/base.rb', line 23 def finish(); end |
#report(message) ⇒ Object
Called when a message is discovered from the lintrunner
19 |
# File 'lib/lintrunner/reporter/base.rb', line 19 def report(); end |
#start(name) ⇒ Object
Called when a lintrunner is started
15 |
# File 'lib/lintrunner/reporter/base.rb', line 15 def start(name); end |