Skip to content

Commit

Permalink
Add a health check to phpstan (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit17 authored Apr 29, 2024
1 parent bce5058 commit 5ae4524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linters/phpstan/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ae4524

Please sign in to comment.