Sha256: 9aa6ba132cb0025a588159d7c83650fed9a33de56a6b314392709cbe0eb39f5a

Contents?: true

Size: 476 Bytes

Versions: 301

Compression:

Stored size: 476 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("%<path>s\n", path: file)
      end
    end
  end
end

Version data entries

301 entries across 287 versions & 28 rubygems

Version Path
rbhint-0.8.5.rc1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.85.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.84.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.83.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.82.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.81.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.80.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.80.0 lib/rubocop/formatter/file_list_formatter.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rubocop-0.79.0/lib/rubocop/formatter/file_list_formatter.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.79.0/lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.79.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.78.0 lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.75.1/lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.76.0/lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.77.0/lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.77.0 lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rubocop-0.76.0/lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rubocop-0.75.1/lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.76.0 lib/rubocop/formatter/file_list_formatter.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rubocop-0.75.1/lib/rubocop/formatter/file_list_formatter.rb