Class: ERBLint::Reporters::CompactReporter
- Inherits:
-
ERBLint::Reporter
- Object
- ERBLint::Reporter
- ERBLint::Reporters::CompactReporter
- Defined in:
- lib/erb_lint/reporters/compact_reporter.rb
Direct Known Subclasses
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
#preview ⇒ Object
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 |
#show ⇒ Object
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 summary end |