Sha256: b8cde657925fefe0fd0b0844c77856325af2e9548c401e1e628202158230fef7

Contents?: true

Size: 867 Bytes

Versions: 7

Compression:

Stored size: 867 Bytes

Contents

module Steep
  module Diagnostic
    class LSPFormatter
      LSP: singleton(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

7 entries across 7 versions & 1 rubygems

Version Path
steep-1.3.2 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.3.1 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.4.0.dev.2 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.4.0.dev.1 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.3.0 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.3.0.pre.2 sig/steep/diagnostic/lsp_formatter.rbs
steep-1.3.0.pre.1 sig/steep/diagnostic/lsp_formatter.rbs