Class: Lintrunner::Reporter::File

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

Instance Attribute Summary

Attributes inherited from Base

#path

Instance Method Summary collapse

Methods inherited from Base

#description, #initialize, #report, #start

Constructor Details

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

Instance Method Details

#finish(messages) ⇒ Object



5
6
7
# File 'lib/lintrunner/reporter/file.rb', line 5

def finish(messages)
  puts messages.collect(&:filename).uniq.join("\n") if messages.any?
end