]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): Add PHPStan compiler
authorDietrich Moerman <dietrich.moerman@gmail.com>
Thu, 17 Jul 2025 18:27:18 +0000 (20:27 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Jul 2025 18:27:18 +0000 (20:27 +0200)
closes: #17781

Signed-off-by: Dietrich Moerman <dietrich.moerman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/compiler/phpstan.vim [new file with mode: 0644]

index cb73fc4a52d188eee38a66dc8f48157374aeba57..98852e92063323b2dcd799b12b867da0926b5781 100644 (file)
@@ -76,6 +76,7 @@ runtime/compiler/pandoc.vim                           @Konfekt
 runtime/compiler/perl.vim                              @petdance @heptite
 runtime/compiler/perlcritic.vim                                @petdance @dkearns
 runtime/compiler/php.vim                               @dkearns
+runtime/compiler/phpstan.vim                           @dietrichm
 runtime/compiler/podchecker.vim                                @petdance @dkearns
 runtime/compiler/powershell.vim                                @heaths
 runtime/compiler/raco.vim                              @benknoble
diff --git a/runtime/compiler/phpstan.vim b/runtime/compiler/phpstan.vim
new file mode 100644 (file)
index 0000000..7d1592b
--- /dev/null
@@ -0,0 +1,12 @@
+" Vim compiler file
+" Compiler:    PHPStan
+" Maintainer:  Dietrich Moerman <dietrich.moerman@gmail.com>
+" 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%.%#