Class: SCSSLint::Reporter::CleanFilesReporter
- Inherits:
-
SCSSLint::Reporter
- Object
- SCSSLint::Reporter
- SCSSLint::Reporter::CleanFilesReporter
- Defined in:
- lib/scss_lint/reporter/clean_files_reporter.rb
Overview
Reports a single line for each clean file (having zero lints).
Instance Attribute Summary
Attributes inherited from SCSSLint::Reporter
Instance Method Summary collapse
Methods inherited from SCSSLint::Reporter
Constructor Details
This class inherits a constructor from SCSSLint::Reporter
Instance Method Details
#report_lints ⇒ Object
4 5 6 7 8 |
# File 'lib/scss_lint/reporter/clean_files_reporter.rb', line 4 def report_lints dirty_files = lints.map(&:filename).uniq clean_files = files.map { |e| e['path'] } - dirty_files clean_files.sort.join("\n") + "\n" if clean_files.any? end |