Sha256: c4984515691d19977e9bc2f7321a88e212b79b25794785a2bf5962c596948748

Contents?: true

Size: 864 Bytes

Versions: 4

Compression:

Stored size: 864 Bytes

Contents

module Steep
  module Diagnostic
    class LSPFormatter
      module LSP = LanguageServer::Protocol

      type config = Hash[singleton(Diagnostic::Ruby::Base) | singleton(Diagnostic::Signature::Base), severity?]

      type severity = :error | :warning | :information | :hint

      attr_reader config: config

      attr_reader default_severity: severity

      ERROR: :error

      WARNING: :warning

      INFORMATION: :information

      HINT: :hint

      def initialize: (?config config, ?default_severity: severity) -> void

      def validate_class: (Class klass) -> void

      def validate_severity: (Class | :default klass, severity?) -> void

      def format: (Diagnostic::Ruby::Base | Diagnostic::Signature::Base) -> Hash[Symbol, untyped]?

      def severity_for: (Diagnostic::Ruby::Base | Diagnostic::Signature::Base) -> String?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
steep-1.4.0 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.4.0.dev.5 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.4.0.dev.4 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.4.0.dev.3 sig/steep/diagnostic/lsp_formatter.rbs