add vscode task for phpstan

This commit is contained in:
Andrew Dolgov 2022-07-31 09:39:56 +03:00
parent 7187ab859d
commit a8b0bce008
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 30 additions and 0 deletions

30
.vscode/tasks.json vendored
View File

@ -1,6 +1,36 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"type": "shell",
"label": "phpstan-8.1",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"owner": "phpstan-8.1",
"pattern": {
"regexp": "^/app/(.*?):([0-9\\?]*):(.*)$",
"file": 1,
"line": 2,
"message": 3
}
},
"command": "docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan --workdir /app php:8.1-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true",
},
{
"type": "shell",
"label": "phpstan-8.0",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"owner": "phpstan-8.0",
"pattern": {
"regexp": "^/app/(.*?):([0-9\\?]*):(.*)$",
"file": 1,
"line": 2,
"message": 3
}
},
"command": "docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.0:/tmp/phpstan --workdir /app php:8.0-cli php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw || true",
},
{ {
"type": "gulp", "type": "gulp",
"task": "default", "task": "default",