mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
extend documentation on JSON (#2635)
copying the information provided as answer to https://github.com/microsoft/pyright/issues/2634
This commit is contained in:
parent
cae15781a3
commit
8d32784230
@ -85,3 +85,7 @@ Each Diagnostic is output in the following format:
|
||||
```
|
||||
|
||||
Diagnostic line and character numbers are zero-based.
|
||||
|
||||
**Note:** Not all diagnostics have an associated diagnostic rule. For example, parse errors are emitted unconditionally and have no associated rule. Diagnostic rules are used only for diagnostics that can be disabled or enabled.
|
||||
|
||||
If a rule is associated with the diagnostic, it is included in the output. If it's not, the rule field is omitted from the JSON output. If you are consuming this output, your code should be prepared to handle the case where there is no rule.
|
||||
|
Loading…
Reference in New Issue
Block a user