vim-phpstan icon indicating copy to clipboard operation
vim-phpstan copied to clipboard

Vimscript implementation

Open dantleech opened this issue 7 years ago • 4 comments

Hey :)

This PR:

  • [x] Adjusts the plugin to use only Vimscript, taking advantage of the --errorFormat=raw option.
  • [x] Tries to detect project versions of PHPStan, falling back to the global executable.

Todo:

  • [ ] Add some documentation.
  • [ ] Test it properly
  • [ ] Include phpstan.neon if it exists...

Initially this plugin didn't work because I didn't have phpstan installed globally, then I just thought I'd try and adopt the VIMScript approach.

dantleech avatar Mar 31 '18 18:03 dantleech

This worked for me as I have PHPStan installed in vendor/bin/phpstan

Thanks!

akrabat avatar Sep 14 '18 10:09 akrabat

This sounds like a great addition, as I also have PHPStan installed at the project level. Any reason why this hasn't been merged?

mstyles avatar Oct 23 '18 01:10 mstyles

For what it's worth, I switched to using Ale which supports Phpstan OOTB: https://github.com/w0rp/ale (works best with phpstan installed globally)

dantleech avatar Oct 24 '18 13:10 dantleech

For what it's worth, I switched to using Ale which supports Phpstan OOTB: https://github.com/w0rp/ale (works best with phpstan installed globally)

  • Since three days ALE now picks up the local PHPStan executable if it is available
  • ALE only supports file level diagnostics while this one here loads everything into the quickfix list

This combination of both would be great :D

weeman1337 avatar Jul 13 '21 06:07 weeman1337