aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-11-11 07:04:55 -0500
committertdro <tdro@users.noreply.github.com>2022-11-11 07:04:55 -0500
commitb8bb8768c9d9d33ca4e846d4339c22cdf51677a2 (patch)
tree71a38a457e0ee58660fe80a3cbb376292af6e231 /.vim
parentf796d65684e547e5ac167603993a43e4d5e74e28 (diff)
downloaddotfiles-b8bb8768c9d9d33ca4e846d4339c22cdf51677a2.tar.gz
dotfiles-b8bb8768c9d9d33ca4e846d4339c22cdf51677a2.tar.bz2
dotfiles-b8bb8768c9d9d33ca4e846d4339c22cdf51677a2.zip
.vim/vimrc: Run phpstan check
Diffstat (limited to '.vim')
-rw-r--r--.vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 761bcdc..0d50f54 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -287,7 +287,7 @@ augroup AutoCommands
autocmd BufWritePost plugins.vim source % | Notify('printf "Plugins configuration sourced."')
" Linting file type post write commands.
- autocmd FileType php autocmd! BufWritePost <buffer> exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e
+ autocmd FileType php autocmd! BufWritePost <buffer> exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1 && phpstan --no-progress --no-ansi --no-interaction analyze --level max ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType css autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType html autocmd! BufWritePost <buffer> exe 'Notify(''prettier --write --parser html ' . expand('%') . ' 2>&1'')' | :e
autocmd FileType python autocmd! BufWritePost <buffer> exe 'Notify(''black ' . expand('%') . ' 2>&1 && pylint ' . expand('%') . ' 2>&1'')' | :e