[Core] Activate live linting in codespaces (#3293)

* [Core] Add live linting to devcontainer

* Deactivate lint on type
This commit is contained in:
Bocki 2023-03-08 18:39:50 +01:00 committed by GitHub
parent 783160e715
commit 90bf5518cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -4,4 +4,5 @@ RUN apt-get update && \
apt-get install --yes --no-install-recommends \
git && \
pecl install xdebug && \
pear install PHP_CodeSniffer && \
docker-php-ext-enable xdebug

View File

@ -6,7 +6,10 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"php.validate.executablePath": "/usr/local/bin/php"
"php.validate.executablePath": "/usr/local/bin/php",
"phpSniffer.executablesFolder": "/usr/local/bin/",
"phpcs.executablePath": "/usr/local/bin/phpcs",
"phpcs.lintOnType": false
},
// Add the IDs of extensions you want installed when the container is created.
@ -14,7 +17,8 @@
"xdebug.php-debug",
"bmewburn.vscode-intelephense-client",
"philfontaine.autolaunch",
"eamodio.gitlens"
"eamodio.gitlens",
"shevaua.phpcs"
]
}
},

View File

@ -1,5 +1,3 @@
zend_extension=xdebug.so
[xdebug]
xdebug.mode=develop,debug
xdebug.client_host=localhost