Sha256: 170c84c17088c64beb2e7401045eb75ff799e2299a257b7f5905dcf739a793c4

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

module SCSSLint
  # Reports a single line per lint.
  class Reporter::DefaultReporter < Reporter
    def report_lints
      return unless lints.any?

      lints.map do |lint|
        type = lint.error? ? '[E]'.color(:red) : '[W]'.color(:yellow)
        "#{lint.filename.color(:cyan)}:" << "#{lint.location.line}".color(:magenta) <<
                                    " #{type} #{lint.description}"
      end.join("\n") + "\n"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scss-lint-0.25.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.25.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.24.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.24.0 lib/scss_lint/reporter/default_reporter.rb