Sha256: d7654a10503ca3954344d76abb93526b8d9d53a01f8824b6954d3e62efd19357

Contents?: true

Size: 681 Bytes

Versions: 54

Compression:

Stored size: 681 Bytes

Contents

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

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

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

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
scss_lint-0.45.0 lib/scss_lint/lint.rb
scss_lint-0.44.0 lib/scss_lint/lint.rb
scss_lint-0.43.2 lib/scss_lint/lint.rb
scss_lint-0.43.1 lib/scss_lint/lint.rb
scss_lint-0.43.0 lib/scss_lint/lint.rb
scss_lint-0.42.2 lib/scss_lint/lint.rb
scss_lint-0.42.1 lib/scss_lint/lint.rb
scss_lint-0.42.0 lib/scss_lint/lint.rb
scss_lint-0.41.0 lib/scss_lint/lint.rb
scss_lint-0.40.1 lib/scss_lint/lint.rb
scss_lint-0.40.0 lib/scss_lint/lint.rb
scss_lint-0.39.0 lib/scss_lint/lint.rb
scss_lint-0.38.0 lib/scss_lint/lint.rb
scss-lint-0.38.0 lib/scss_lint/lint.rb
scss-lint-bliss-1.0.0 lib/scss_lint/lint.rb
scss-lint-0.37.0 lib/scss_lint/lint.rb
scss-lint-0.36.1 lib/scss_lint/lint.rb
scss-lint-0.36.0 lib/scss_lint/lint.rb
scss-lint-0.35.0 lib/scss_lint/lint.rb
scss-lint-0.34.0 lib/scss_lint/lint.rb