mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
If no files are found and no errors are detected but the --outputjson
command-line option is used, a json report should still be issued. This addresses https://github.com/microsoft/pyright/issues/4723.
This commit is contained in:
parent
659fdfab75
commit
3035662636
@ -335,7 +335,7 @@ async function processArgs(): Promise<ExitStatus> {
|
||||
}
|
||||
|
||||
let errorCount = 0;
|
||||
if (results.diagnostics.length > 0 && !args.createstub && !args['verifytypes']) {
|
||||
if (!args.createstub && !args.verifytypes) {
|
||||
if (args.outputjson) {
|
||||
const report = reportDiagnosticsAsJson(
|
||||
results.diagnostics,
|
||||
|
Loading…
Reference in New Issue
Block a user