Documentation ¶
Index ¶
- func ConvertResultIntoDiagnostic(vacuumResult *model.RuleFunctionResult) protocol.Diagnostic
- func ConvertResultsIntoDiagnostics(result *motor.RuleSetExecutionResult) []protocol.Diagnostic
- func GetDiagnosticSeverityFromRule(rule *model.Rule) protocol.DiagnosticSeverity
- type Document
- type DocumentStore
- type ServerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertResultIntoDiagnostic ¶ added in v0.9.11
func ConvertResultIntoDiagnostic(vacuumResult *model.RuleFunctionResult) protocol.Diagnostic
func ConvertResultsIntoDiagnostics ¶ added in v0.9.11
func ConvertResultsIntoDiagnostics(result *motor.RuleSetExecutionResult) []protocol.Diagnostic
func GetDiagnosticSeverityFromRule ¶ added in v0.9.11
func GetDiagnosticSeverityFromRule(rule *model.Rule) protocol.DiagnosticSeverity
Types ¶
type Document ¶
type Document struct { URI protocol.DocumentUri RunningDiagnostic bool Content string }
type DocumentStore ¶
type DocumentStore struct {
// contains filtered or unexported fields
}
func (*DocumentStore) Remove ¶
func (s *DocumentStore) Remove(uri string)
type ServerState ¶
type ServerState struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(version string, lintRequest *utils.LintFileRequest) *ServerState
func (*ServerState) Run ¶
func (s *ServerState) Run() error
Click to show internal directories.
Click to hide internal directories.