[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 \ apt-get install --yes --no-install-recommends \
git && \ git && \
pecl install xdebug && \ pecl install xdebug && \
pear install PHP_CodeSniffer && \
docker-php-ext-enable xdebug docker-php-ext-enable xdebug

View file

@ -6,7 +6,10 @@
"vscode": { "vscode": {
// Set *default* container specific settings.json values on container create. // Set *default* container specific settings.json values on container create.
"settings": { "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. // Add the IDs of extensions you want installed when the container is created.
@ -14,7 +17,8 @@
"xdebug.php-debug", "xdebug.php-debug",
"bmewburn.vscode-intelephense-client", "bmewburn.vscode-intelephense-client",
"philfontaine.autolaunch", "philfontaine.autolaunch",
"eamodio.gitlens" "eamodio.gitlens",
"shevaua.phpcs"
] ]
} }
}, },

View file

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