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
rubocop-1.64.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.63.4 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.63.3 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.63.2 lib/rubocop/formatter/file_list_formatter.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.63.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.63.0 lib/rubocop/formatter/file_list_formatter.rb
bison-0.1.0 vendor/bundle/ruby/3.2.0/gems/rubocop-1.62.1/lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.62.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.62.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.61.0 lib/rubocop/formatter/file_list_formatter.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.2/lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.60.2 lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.7 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.6 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.5 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.4 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.3 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
study_line-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/formatter/file_list_formatter.rb
rubocop-1.60.1 lib/rubocop/formatter/file_list_formatter.rb