Sha256: 470bc153f4b3b252f0a5370c011f910cd97cf6576a8b06baa7e13173ecd0c7da

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

module SCSSLint
  # Reports a single line for each clean file (having zero lints).
  class Reporter::CleanFilesReporter < Reporter
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scss_lint-0.60.0 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.59.0 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.58.0 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.57.1 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.57.0 lib/scss_lint/reporter/clean_files_reporter.rb