Class: Solargraph::Diagnostics::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/diagnostics/base.rb

Overview

The base class for diagnostics reporters.

Direct Known Subclasses

RequireNotFound, Rubocop, TypeNotDefined, UpdateErrors

Instance Method Summary collapse

Instance Method Details

#diagnose(source, api_map) ⇒ Array<Hash>

Perform a diagnosis on a Source within the context of an ApiMap. The result is an array of hash objects that conform to the LSP’s Diagnostic specification.

Subclasses should override this method.

Parameters:

Returns:

  • (Array<Hash>)


15
16
17
# File 'lib/solargraph/diagnostics/base.rb', line 15

def diagnose source, api_map
  []
end