pub enum TypeCheckingFormat {
Full,
Concise,
Azure,
Json,
JsonLines,
Rdjson,
Pylint,
Gitlab,
Github,
}Expand description
How type-check diagnostics are rendered into text.
Mirrors ty’s DiagnosticFormat. Rendering happens wherever the type checker
runs (inside the worker for pool sessions), because ty’s structured
diagnostics borrow the salsa database and cannot cross a process boundary —
so the format has to be chosen before the check, not after it.
Serialized into session dumps by discriminant, so new variants must be
appended — inserting one shifts every later variant and silently rewrites
older dumps’ format (see DUMP_VERSION in monty).
Variants§
Full
Human-readable diagnostics with a source snippet and carets.
Concise
One path:line:col: severity[rule] message line per diagnostic.
Azure
Azure Pipelines logging commands.
Json
A JSON array of diagnostic objects.
JsonLines
One JSON diagnostic object per line.
Rdjson
Reviewdog diagnostic JSON.
Pylint
Pylint-compatible output.
Gitlab
GitLab Code Quality report JSON.
Github
GitHub Actions workflow commands.
Implementations§
Trait Implementations§
Source§impl Clone for TypeCheckingFormat
impl Clone for TypeCheckingFormat
Source§fn clone(&self) -> TypeCheckingFormat
fn clone(&self) -> TypeCheckingFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more