From f2290a682365c3a99e582bb74c99b0e5c4b98113 Mon Sep 17 00:00:00 2001 From: Dietrich Moerman Date: Thu, 17 Jul 2025 20:27:18 +0200 Subject: [PATCH] runtime(compiler): Add PHPStan compiler closes: #17781 Signed-off-by: Dietrich Moerman Signed-off-by: Christian Brabandt --- .github/MAINTAINERS | 1 + runtime/compiler/phpstan.vim | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 runtime/compiler/phpstan.vim diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS index cb73fc4a52..98852e9206 100644 --- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -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 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%.%#