From 5ae4524cc6dc964136867f9a6eed4c9b0837082f Mon Sep 17 00:00:00 2001 From: Lauri Takacsi Date: Mon, 29 Apr 2024 10:11:13 -0700 Subject: [PATCH] Add a health check to phpstan (#758) --- linters/phpstan/plugin.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linters/phpstan/plugin.yaml b/linters/phpstan/plugin.yaml index e2f117e2a..9f13e3501 100644 --- a/linters/phpstan/plugin.yaml +++ b/linters/phpstan/plugin.yaml @@ -9,12 +9,16 @@ tools: environment: - name: PATH list: ["${tool}/vendor/bin"] + health_checks: + - command: phpstan --version + parse_regex: PHP Static Analysis Tool ${semver} lint: definitions: - name: phpstan main_tool: phpstan known_good_version: 1.10.58 description: PHP Static Analysis Tool + suggest_if: never commands: - run: phpstan analyze "${target}" --error-format=json --level=9 output: sarif