Sha256: a98470d0ead27ba8e57b0178f8ac8cea207e807a0e0ad3efccd4e3baf7806118

Contents?: true

Size: 463 Bytes

Versions: 32

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

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

32 entries across 32 versions & 3 rubygems

Version Path
rubocop-0.51.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.50.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.49.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.49.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.48.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.48.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.47.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.47.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.46.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.45.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.44.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.44.0 lib/rubocop/formatter/file_list_formatter.rb