Sha256: 500eb82cd3c678dea8100ebb2fdb4389615db06ca6f7ecc22fb4fb497f31f471

Contents?: true

Size: 433 Bytes

Versions: 14

Compression:

Stored size: 433 Bytes

Contents

require 'colorize'

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]'.red : '[W]'.yellow
          "#{lint.filename.cyan}:" << "#{lint.line}".magenta <<
                                      " #{type} #{lint.description}"
        end.join("\n") + "\n"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
scss-lint-0.20.3 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.20.2 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.20.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.20.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.19.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.18.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.17.3 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.17.2 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.17.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.17.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.16.1 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.16.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.15.0 lib/scss_lint/reporter/default_reporter.rb
scss-lint-0.14.0 lib/scss_lint/reporter/default_reporter.rb