laravel / pint

Laravel Pint is an opinionated PHP code style fixer for minimalists.
https://laravel.com/docs/pint
MIT License
2.79k stars 144 forks source link

Add "--print" option for formatter managers like dprint #293

Closed adaliszk closed 2 months ago

adaliszk commented 2 months ago

I have a fairly complex monorepo setup where we are migrating to PHP and Laravel. To accommodate all the different languages, we use Dprint as the formatter tool so that all files would be properly maintained.

In order to use Pint with Dprint, we would need a simple print option where Pint would just print out the formatted result instead of writing to the disk back. With that, it would be possible to run https://github.com/dprint/dprint-plugin-exec, and parallelize the formatting needs as well as integrate with the rest of the ecosystem.

Would this be fine with you to add?

driesvints commented 2 months ago

Heya, thanks for submitting this.

This seems like a feature request or an improvement. For these, we'd appreciate a pull request instead so we can look at actual code. If you need feedback about an idea, we suggest to post an idea discussion here first. Please only use the issue tracker to report bugs and issues with this library.

Thanks!

adaliszk commented 2 months ago

I see. Could you modify the GitHub template so it does not accept feature requests? Currently, it does allow it.