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
# File 'lib/erb_lint/reporters/compact_reporter.rb', line 6

def preview
  puts "#{linting} #{stats.files} files with #{linters}..."
end

#showObject



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

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

  footer
  summary
end