Sha256: 45cea202c30299ae92088f5ac5411375f9b005600672ede0646f32119c439ccb

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Formatter
    # 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
    class FileListFormatter < BaseFormatter
      def file_finished(file, offenses)
        return if offenses.empty?
        output.printf("%s\n", file)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-0.22.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.21.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.20.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.20.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.19.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.19.0 lib/rubocop/formatter/file_list_formatter.rb