In the shell the filtering this output by | jq '.files["/home/user/phpcd.vim/php/PHPCD.php"].messages' works.
I tried to make something similar in coc config, e.g. use "errorsRoot": "files[\"%filepath\"].messages" but it does not work. Please update examples with the correct usage if using %filepath in erorsRoot is possible.
I successfully made working equivalent fo phpcs but it can take stdin (phpstan seems to cannot it) and so there is no need to use the filename in the path.
Let's see an output of phpstan on some old project:
In the shell the filtering this output by
| jq '.files["/home/user/phpcd.vim/php/PHPCD.php"].messages'
works.I tried to make something similar in coc config, e.g. use
"errorsRoot": "files[\"%filepath\"].messages"
but it does not work. Please update examples with the correct usage if using%filepath
inerorsRoot
is possible.I successfully made working equivalent fo
phpcs
but it can take stdin (phpstan seems to cannot it) and so there is no need to use the filename in the path.