mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
More documentation improvements.
This commit is contained in:
parent
4fa40fba75
commit
0a65625e03
@ -43,6 +43,22 @@ Pyright can be run as either a VS Code extension or as a node-based command-line
|
|||||||
# JSON Output
|
# JSON Output
|
||||||
|
|
||||||
If the “--outputjson” option is specified on the command line, diagnostics are output in JSON format. The JSON structure is as follows:
|
If the “--outputjson” option is specified on the command line, diagnostics are output in JSON format. The JSON structure is as follows:
|
||||||
|
```javascript
|
||||||
|
{
|
||||||
|
version: string,
|
||||||
|
time: string,
|
||||||
|
diagnostics: Diagnostic[],
|
||||||
|
summary: {
|
||||||
|
filesAnalyzed: number,
|
||||||
|
errorCount: number,
|
||||||
|
warningCount: number,
|
||||||
|
timeInSec: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Each Diagnostic is formatted output in the following format:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
file: string,
|
file: string,
|
||||||
@ -61,4 +77,4 @@ If the “--outputjson” option is specified on the command line, diagnostics a
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Line and character numbers are zero-based.
|
Diagnostic line and character numbers are zero-based.
|
||||||
|
Loading…
Reference in New Issue
Block a user