Vimscript implementation
Hey :)
This PR:
- [x] Adjusts the plugin to use only Vimscript, taking advantage of the
--errorFormat=rawoption. - [x] Tries to detect project versions of PHPStan, falling back to the global executable.
Todo:
- [ ] Add some documentation.
- [ ] Test it properly
- [ ] Include
phpstan.neonif 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.
This worked for me as I have PHPStan installed in vendor/bin/phpstan
Thanks!
This sounds like a great addition, as I also have PHPStan installed at the project level. Any reason why this hasn't been merged?
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)
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