From d7050d6e397f8916a38e8610ae8c2d8d75610fe4 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 18 Jul 2025 17:18:26 +0800 Subject: [PATCH] vim-patch:f2290a6: runtime(compiler): Add PHPStan compiler (#34985) closes: vim/vim#17781 https://github.com/vim/vim/commit/f2290a682365c3a99e582bb74c99b0e5c4b98113 Co-authored-by: Dietrich Moerman --- runtime/compiler/phpstan.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 runtime/compiler/phpstan.vim diff --git a/runtime/compiler/phpstan.vim b/runtime/compiler/phpstan.vim new file mode 100644 index 0000000000..7d1592be8f --- /dev/null +++ b/runtime/compiler/phpstan.vim @@ -0,0 +1,12 @@ +" Vim compiler file +" Compiler: PHPStan +" Maintainer: Dietrich Moerman +" Last Change: 2025 Jul 17 + +if exists("current_compiler") + finish +endif +let current_compiler = "phpstan" + +CompilerSet makeprg=composer\ exec\ --\ phpstan\ analyse\ -v\ --no-progress\ --error-format=raw +CompilerSet errorformat=%f:%l:%m,%-G%.%#