displayPath
displayPath(
problem):string
Defined in: packages/core/src/parser/validation-utils.ts:81
The path to show a reader in front of a message, or "" for none.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
problem | { message: string; path?: string; } |
problem.message | string |
problem.path? | string |
Returns
Section titled “Returns”string
Remarks
Section titled “Remarks”Chapter problems are worded from the author’s side: Chapter 4 ("brooklyn-bridge") is missing center: …, counted from 1. Their path
stays the 0-based chapters.3.center for tools (JSON/SARIF output, editor
integrations), but printing it in front of the message read as two
different chapters (ml-aot.62). Show the path for everything else.