Sha256: e05cddcc2db3cfbf7d0a45be10b4a542044838a19a88d0d3708b63d694993e06

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

require 'colorize'

module SCSSLint
  class Reporter::DefaultReporter < Reporter
    def report_lints
      if lints.any?
        lints.map do |lint|
          type = lint.error? ? '[E]'.red : '[W]'.yellow
          "#{lint.filename.cyan}:" << "#{lint.line}".magenta <<
                                      " #{type} #{lint.description}"
        end.join("\n") + "\n"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scss-lint-0.13.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.12.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.12.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.11.1 lib/scss_lint/reporter/default_reporter.rb