Skip to content

Dart analyze emits extra output on JSON #49905

@eli-amazing

Description

@eli-amazing

Hey there,
It seems that when you run analysis using the dart CLI and choosing output format JSON, you can't pipe it to a parser without cleaning the output a little

Running the command dart analyze . --format json
Would yield the following if there are no errors

Analyzing ....
No issues found!

If there are errors, this would yield

Analyzing ....
{JSON omitted for brevity}

A quick inspection into the command source led me to understand that it's already being done on machine output and it's unclear to me why not also on JSON

Thanks
Eli

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-analyzeIssues related to the 'dart analyze' tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions