Sha256: bdb95611411dd043683f53fe88b8a375f42697fcea6bddffdfb56afbc4311f6b

Contents?: true

Size: 318 Bytes

Versions: 24

Compression:

Stored size: 318 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 - dirty_files
      clean_files.sort.join("\n") + "\n" if clean_files.any?
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
scss_lint-0.42.2 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.42.1 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.42.0 lib/scss_lint/reporter/clean_files_reporter.rb
scss_lint-0.41.0 lib/scss_lint/reporter/clean_files_reporter.rb