Open tcmulder opened 3 months ago
Not sure how practical it is to install this with the theme (maybe could get it working globally in VSCode, which could still be worthwhile).
mkdir .lint
cd .lint
composer require --dev squizlabs/php_codesniffer wp-coding-standards/wpcs
alias phpcs="php vendor/squizlabs/php_codesniffer/bin/phpcs"
alias phpcbf="php vendor/squizlabs/php_codesniffer/bin/phpcbf"
phpcs -i
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev wp-coding-standards/wpcs:"^3.0"
phpcs ../footer.php
Has a lot of noise over comentting...
*but not spelling...