mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
Updated command-line documentation for consistency.
This commit is contained in:
parent
fbb755036e
commit
28d60e62ae
@ -86,6 +86,4 @@ Each Diagnostic is output in the following format:
|
|||||||
|
|
||||||
Diagnostic line and character numbers are zero-based.
|
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.
|
Not all diagnostics have an associated diagnostic 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 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