Output formats for the standalone mix scry task.
Text is the pentiment frames plus a summary line. JSON is the stable machine schema — the structured finding fields, never the rendered frames:
[
{
"analysis": "one_for_one_coupling",
"severity": "warning",
"file": "lib/my_app/application.ex",
"line": 12,
"title": "Coupled children under one_for_one",
"detail": "...",
"help": ["..."],
"related": [{"label": "coupling call", "file": "...", "line": 41}]
}
]
Summary
Functions
Encodes resolved finding entries as JSON on stdout.
The N findings (x errors, y warnings, z infos) summary line.
Prints resolved entries as pentiment frames with a trailing summary.
Functions
Encodes resolved finding entries as JSON on stdout.
@spec summary([Mix.Task.Compiler.Diagnostic.t()]) :: String.t()
The N findings (x errors, y warnings, z infos) summary line.
@spec text([Scry.Diagnostics.rendered()]) :: :ok
Prints resolved entries as pentiment frames with a trailing summary.