Skip to content

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.

ParameterType
problem{ message: string; path?: string; }
problem.messagestring
problem.path?string

string

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.