Add links to files into issues report
before:
It just runs psalm --output-format=json
and then turn into slightly modified console format, so PhpStorm can recognize issues filenames as links.
It also passes additional arguments, so you can use it as vendor/bin/psalm-fmt file.php
.
- respects
-m
,--monochrome
,--show-snippet[=true]
flags - pass back
psalm
exit code - bypass output if given
--output-format
is notconsole
- isn't suppress json output
- isn't show stats and other details given by console format
- provide formatter customisation
composer require --dev the-toster/psalm-fmt
Will create vendor/bin/psalm-fmt
vendor/bin/psalm-fmt