Sha256: 3fdeb34c1903abfe8981a781601f0a81592252b63d3c8cda30045778f9d11297

Contents?: true

Size: 409 Bytes

Versions: 9

Compression:

Stored size: 409 Bytes

Contents

module SCSSLint
  # Stores information about a single problem that was detected by a [Linter].
  class Lint
    attr_reader :filename, :line, :description, :severity

    def initialize(filename, line, description, severity = :warning)
      @filename = filename
      @line = line
      @description = description
      @severity = severity
    end

    def error?
      severity == :error
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scss-lint-0.18.0 lib/scss_lint/lint.rb
scss-lint-0.17.3 lib/scss_lint/lint.rb
scss-lint-0.17.2 lib/scss_lint/lint.rb
scss-lint-0.17.1 lib/scss_lint/lint.rb
scss-lint-0.17.0 lib/scss_lint/lint.rb
scss-lint-0.16.1 lib/scss_lint/lint.rb
scss-lint-0.16.0 lib/scss_lint/lint.rb
scss-lint-0.15.0 lib/scss_lint/lint.rb
scss-lint-0.14.0 lib/scss_lint/lint.rb