Class: Lintrunner::Reporter::Text
- Inherits:
-
Base
- Object
- Base
- Lintrunner::Reporter::Text
show all
- Defined in:
- lib/lintrunner/reporter/text.rb
Instance Attribute Summary
Attributes inherited from Base
#path
Instance Method Summary
collapse
Methods inherited from Base
#description, #initialize
Instance Method Details
#finish(messages) ⇒ Object
13
14
15
16
|
# File 'lib/lintrunner/reporter/text.rb', line 13
def finish(messages)
puts "No messages found".color(:green) if messages.empty?
puts
end
|
#report(message) ⇒ Object
9
10
11
|
# File 'lib/lintrunner/reporter/text.rb', line 9
def report(message)
puts "#{location(message)} #{message.description} #{message_name(message)}"
end
|
#start(name) ⇒ Object
5
6
7
|
# File 'lib/lintrunner/reporter/text.rb', line 5
def start(name)
puts "Running #{name} linters".underline
end
|