Diagnostic

constructor(from: DocPos, to: DocPos, severity: Severity, message: String, source: String? = null, actions: List<Action> = emptyList())

Parameters

from

Start of the problematic range.

to

End of the problematic range.

severity

The severity level.

message

Human-readable description of the issue.

source

Optional name of the lint source (e.g. "eslint").

actions

Optional quick-fix actions.