-
-
Notifications
You must be signed in to change notification settings - Fork 943
Closed
Description
When trying to fix many PHPStan errors at once I noticed that most of my time is actually consumed by looking up the correct files and lines - even when using Ctrl+N and Ctrl+G.
So I hacked PHPStan to print editor:// links to the errors. Surprisingly I actually got it to work.
Here is what I've done:
- Followed the notes here to make
editor://open PHPStorm. - Used one of the terminals that support escape sequences for links. In my case I used
gnome-terminalsince it was already on my Ubuntu. - Hacked PHPStan's TableErrorFormatter to print the links.
I'm not going to send a PR for this since you'd most likely want to hide it behind a --links option and also because I was only able to get it to work using normal echo - Symfony's table formatting breaks it. Still you might want to consider this as a nice feature for the next PHPStan version.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels