Sha256: b941237449db716e351322793692860851c183299b30981fe23f807e58088bb8

Contents?: true

Size: 570 Bytes

Versions: 7

Compression:

Stored size: 570 Bytes

Contents

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

    # @param filename [String]
    # @param line [Integer]
    # @param description [String]
    # @param severity [Symbol]
    def initialize(filename, line, description, severity = :warning)
      @filename    = filename
      @line        = line
      @description = description
      @severity    = severity
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scss-lint-0.22.0 lib/scss_lint/lint.rb
scss-lint-0.21.0 lib/scss_lint/lint.rb
scss-lint-0.20.3 lib/scss_lint/lint.rb
scss-lint-0.20.2 lib/scss_lint/lint.rb
scss-lint-0.20.1 lib/scss_lint/lint.rb
scss-lint-0.20.0 lib/scss_lint/lint.rb
scss-lint-0.19.0 lib/scss_lint/lint.rb