Class: ERBLint::Reporters::CompactReporter

Inherits:
ERBLint::Reporter show all
Defined in:
lib/erb_lint/reporters/compact_reporter.rb

Direct Known Subclasses

MultilineReporter

Instance Method Summary collapse

Methods inherited from ERBLint::Reporter

available_format?, available_formats, create_reporter, #initialize

Constructor Details

This class inherits a constructor from ERBLint::Reporter

Instance Method Details

#previewObject



6
7
8
9
# File 'lib/erb_lint/reporters/compact_reporter.rb', line 6

def preview
  puts "Linting #{stats.files} files with "\
    "#{stats.linters} #{'autocorrectable ' if autocorrect}linters..."
end

#showObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/erb_lint/reporters/compact_reporter.rb', line 11

def show
  processed_files.each do |filename, offenses|
    offenses.each do |offense|
      puts format_offense(filename, offense)
    end
  end

  footer
  summary
end