Class: Rubocop::Formatter::FileListFormatter

Inherits:
SimpleTextFormatter show all
Defined in:
lib/rubocop/formatter/file_list_formatter.rb

Overview

This formatter displays just a list of the files with offences in them, separated by newlines.

Here's the format:

/some/file /some/other/file

Instance Attribute Summary

Attributes inherited from SimpleTextFormatter

#reports_summary

Attributes inherited from BaseFormatter

#output

Instance Method Summary collapse

Methods inherited from SimpleTextFormatter

#file_finished, #finished, #report_summary, #started

Methods inherited from BaseFormatter

#file_finished, #file_started, #finished, #initialize, #started

Constructor Details

This class inherits a constructor from Rubocop::Formatter::BaseFormatter

Instance Method Details

#report_file(file, offences) ⇒ Object



13
14
15
# File 'lib/rubocop/formatter/file_list_formatter.rb', line 13

def report_file(file, offences)
  output.printf("%s\n", file)
end