Workiva / dependency_validator

A tool to help you find missing, under-promoted, over-promoted, and unused dependencies.
Other
56 stars 18 forks source link

Is it possible to get JSON output ? #109

Open prasunsultania opened 3 months ago

prasunsultania commented 3 months ago

Is it possible to get output as JSON ?

matthewnitschke-wk commented 2 months ago

Not currently possible given the current command line arguments / functionality

How are you wanting to use this data? and what are you expecting the output to be?

prasunsultania commented 2 months ago

@matthewnitschke-wk

I have written a tool to validate the PR before merging it so, that any missing/extra dependencies are addressed.

Below, screenshot will give an idea of what I have been trying to do

2024-04-25_12-11-05

matthewnitschke-wk commented 2 months ago

Interesting! Could you just use the stdout from running the dart run dependency_validator command?

Looks like you're just looking for a high level summary of what dependencies might be invalid, which the default stdout already provides

prasunsultania commented 2 months ago

@matthewnitschke-wk I can parse the stdout, is the format going to be consistent in future updates ?

matthewnitschke-wk commented 2 months ago

No, I don't think so

In your above example it appears as though you are just piping the output of npx depcheck to the comments on a jira issue. I didn't realize that you're also trying to parse the data within the result as well

If you could give an example of what data you're trying to parse from the results, that would help us understand how best to format the json output