the-toster / psalm-fmt
Psalm wrapper that formats console output to fit PhpStorm source link pattern
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.4
- ext-json: *
- vimeo/psalm: ^3.14
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-10-29 05:41:25 UTC
README
Psalm wrapper for PhpStorm
Add links to files into issues report
before:
How it works
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
.
Features
- respects
-m
,--monochrome
,--show-snippet[=true]
flags - pass back
psalm
exit code - bypass output if given
--output-format
is notconsole
Limitation | TODO
- isn't suppress json output
- isn't show stats and other details given by console format
- provide formatter customisation
Installation
composer require --dev the-toster/psalm-fmt
Will create vendor/bin/psalm-fmt
Usage
vendor/bin/psalm-fmt