class RuboCop::Formatter::FileListFormatter

This formatter displays just a list of the files with offenses in them, separated by newlines. The output is machine-parsable.

Here's the format:

/some/file /some/other/file

Public Instance Methods

file_finished(file, offenses) click to toggle source
# File lib/rubocop/formatter/file_list_formatter.rb, line 13
def file_finished(file, offenses)
  return if offenses.empty?

  output.printf("%<path>s\n", path: file)
end