Still haven't gotten this working well... sigh.
The persoderlind.vscode-phpcbf extension didn't work for me when running my PHP devel container (php:8.2-fpm) on Windows 11 in Docker Desktop using the WSL2 Engine until I let it know about the CakePHP coding standard
# in project ROOT
# before no CakePHP standard available
vendor/bin/phpcbf -i
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and Zend
# let phpcbf know about the CakePHP sniffs
vendor/bin/phpcs --config-set installed_paths /var/www/wms/vendor/cakephp/cakephp-codesniffer
Using config file: /var/www/wms/vendor/squizlabs/php_codesniffer/CodeSniffer.conf
Config value "installed_paths" added successfully
# check that CakePHP is available
phpcbf -i
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend and CakePHP
0 Comments