Sha256: 31d82aa10a1216886142806ffdc0a88673bbf418ada833c3039631b290101b89

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 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.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.22.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.21.0 lib/scss_lint/reporter/default_reporter.rb