Sha256: dfe60d70890441d5ccd3073e4cb3cfd8f0639fcbee8149ce9b75d283b5537beb

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

module SCSSLint
  # Reports a single line per lint.
  class Reporter::DefaultReporter < Reporter
    def report_lints
      if 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scss-lint-0.23.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.23.0 lib/scss_lint/reporter/default_reporter.rb