Skip to content

Conversation

@Erikvv
Copy link

@Erikvv Erikvv commented Feb 28, 2020

What's this?

Add command to transform json output into other formats.
This allows to do 1 run, and then produce different outputs.
This saves some compute resources for large projects.

Example:

phpstan analyse --error-format json src/ > output.json
cat output.json | phpstan reformat --error-format table > output.txt
cat output.json | phpstan reformat --error-format baselineNeon > baseline.neon

Testing

@Erikvv Erikvv changed the title Add reformat command [WIP] Add reformat command Feb 28, 2020
@ondrejmirtes
Copy link
Member

Yes! 😍 I had this in my todolist :)

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus fix the build failures. Thank you.

@Erikvv
Copy link
Author

Erikvv commented Feb 28, 2020

Thanks for your feedback I addressed it all.

@Erikvv Erikvv changed the title [WIP] Add reformat command Add reformat command Feb 28, 2020
Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more fixes to do :)

@Erikvv
Copy link
Author

Erikvv commented Mar 13, 2020

Sorry for delay, I was having some time off.

Rebased and feedback processed.

@ondrejmirtes ondrejmirtes force-pushed the master branch 5 times, most recently from dc2e229 to 1d0d3ad Compare March 17, 2020 14:14
@Erikvv
Copy link
Author

Erikvv commented Apr 24, 2020

@ondrejmirtes any chance this can be merged?

@ondrejmirtes ondrejmirtes deleted the branch phpstan:master March 12, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants