Sha256: 3d26b234424743df057d67c317c119918da6c2c2f43706ca2e29b13ef898f375

Contents?: true

Size: 419 Bytes

Versions: 10

Compression:

Stored size: 419 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Formatter
    # This formatter displays just a list of the files with offences in them,
    # separated by newlines.
    #
    # Here's the format:
    #
    # /some/file
    # /some/other/file
    class FileListFormatter < BaseFormatter
      def file_finished(file, offences)
        return if offences.empty?
        output.printf("%s\n", file)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubocop-0.18.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.18.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.17.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.16.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.15.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.14.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.14.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.13.1 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.13.0 lib/rubocop/formatter/file_list_formatter.rb
rubocop-0.12.0 lib/rubocop/formatter/file_list_formatter.rb