Skip to content

Commit f2290a6

Browse files
dietrichmchrisbra
authored andcommitted
runtime(compiler): Add PHPStan compiler
closes: #17781 Signed-off-by: Dietrich Moerman <dietrich.moerman@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 71c794c commit f2290a6

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ runtime/compiler/pandoc.vim @Konfekt
7676
runtime/compiler/perl.vim @petdance @heptite
7777
runtime/compiler/perlcritic.vim @petdance @dkearns
7878
runtime/compiler/php.vim @dkearns
79+
runtime/compiler/phpstan.vim @dietrichm
7980
runtime/compiler/podchecker.vim @petdance @dkearns
8081
runtime/compiler/powershell.vim @heaths
8182
runtime/compiler/raco.vim @benknoble

runtime/compiler/phpstan.vim

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
" Vim compiler file
2+
" Compiler: PHPStan
3+
" Maintainer: Dietrich Moerman <dietrich.moerman@gmail.com>
4+
" Last Change: 2025 Jul 17
5+
6+
if exists("current_compiler")
7+
finish
8+
endif
9+
let current_compiler = "phpstan"
10+
11+
CompilerSet makeprg=composer\ exec\ --\ phpstan\ analyse\ -v\ --no-progress\ --error-format=raw
12+
CompilerSet errorformat=%f:%l:%m,%-G%.%#

0 commit comments

Comments
 (0)