[devcontainer] add phpstan

This commit is contained in:
Shish 2024-01-01 03:05:35 +00:00 committed by Shish
parent 26bf4277e0
commit b83d0d3c14

View file

@ -14,15 +14,13 @@
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}, // "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000], "forwardPorts": [8000],
// Uncomment the next line to run commands after the container is created. "postStartCommand": "./.docker/entrypoint.sh unitd --no-daemon --control unix:/var/run/control.unit.sock",
"postCreateCommand": "./.docker/entrypoint.sh unitd --no-daemon --control unix:/var/run/control.unit.sock",
"containerEnv": { "containerEnv": {
"UID": "2000", "UID": "2000",
"GID": "2000", "GID": "2000",
"UPLOAD_MAX_FILESIZE": "50M", "UPLOAD_MAX_FILESIZE": "50M"
}, },
"customizations": { "customizations": {
"vscode": { "vscode": {
@ -31,7 +29,8 @@
"ryanluker.vscode-coverage-gutters", "ryanluker.vscode-coverage-gutters",
"xdebug.php-debug", "xdebug.php-debug",
"DEVSENSE.phptools-vscode", "DEVSENSE.phptools-vscode",
"ms-azuretools.vscode-docker" "ms-azuretools.vscode-docker",
"SanderRonde.phpstan-vscode"
], ],
"settings": { "settings": {
"phpunit.args": [ "phpunit.args": [
@ -40,7 +39,8 @@
], ],
"coverage-gutters.coverageFileNames": [ "coverage-gutters.coverageFileNames": [
"data/coverage.clover" "data/coverage.clover"
] ],
"phpstan.configFile": "tests/phpstan.neon"
} }
} }
} }