Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phpstan/vim-phpstan
A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
https://github.com/phpstan/vim-phpstan
php phpstan static-analysis vim vim-plugin vim-plugins
Last synced: about 2 months ago
JSON representation
A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
- Host: GitHub
- URL: https://github.com/phpstan/vim-phpstan
- Owner: phpstan
- License: mit
- Created: 2017-02-04T21:26:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-31T18:45:00.000Z (almost 7 years ago)
- Last Synced: 2024-04-14T05:41:31.308Z (9 months ago)
- Topics: php, phpstan, static-analysis, vim, vim-plugin, vim-plugins
- Language: PHP
- Size: 45.9 KB
- Stars: 28
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-phpstan
A Vim plugin for [PHPStan](https://github.com/phpstan/phpstan). It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
See `:help quickfix` for more on how to use the quickfix.
# Usage
Call the `PHPStanAnalyse` command and pass the directories you want analysed as arguments:
``` vim
:PHPStanAnalyse src test
```And the quickfix list will be populated with something like this:
![vim phpstan quickfix screenshot](https://github.com/phpstan/vim-phpstan/blob/master/vim-phpstan-qf.png)
# Installation
Using [vim-plug](https://github.com/junegunn/vim-plug):
`Plug 'phpstan/vim-phpstan'`
# Configuration
You can configure the level PHPStan uses. By default the level is 2.
`let g:phpstan_analyse_level = 4` in your `.vimrc` file to change the level to fit your needs.
# Assumptions
This plugin assumes that the `phpstan` executable is available in the `$PATH`.
# Authors
| Authors | |
|------------------|--------------------------------|
| Robert Basic | https://github.com/robertbasic |