Sha256: b684c3587d97525e4771e591c86ff3f207948044a33b597c674ff4c623e7ccc8

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

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

    # @param filename [String]
    # @param location [SCSSLint::Location]
    # @param description [String]
    # @param severity [Symbol]
    def initialize(filename, location, description, severity = :warning)
      @filename    = filename
      @location    = location
      @description = description
      @severity    = severity
    end

    # @return [Boolean]
    def error?
      severity == :error
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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